mersenneforum.org mprime under Ubuntu?
 Register FAQ Search Today's Posts Mark Forums Read

 2006-08-08, 11:27 #1 Unregistered   24×463 Posts mprime under Ubuntu? hi, I'm new, and I've just installed mprime under Ubuntu(Linux). Has mprime a GUI? Now it work, but I can't view any results.Under WIN XP I can view somethimg in a dialog box... Someone know how can I have the same result in Linux? Thanks. Best Regards.
 2006-08-08, 16:22 #2 PhilF     "6800 descendent" Feb 2005 Colorado 25·23 Posts No GUI -- just text. You need to start mprime with the -d option. The -d tells mprime to display results as it is running. There is also a -m option, which tells mprime to start with a menu.
2007-10-21, 12:35   #3
mhnaras

Oct 2007

3 Posts

Quote:
 Originally Posted by PhilF No GUI -- just text. You need to start mprime with the -d option. The -d tells mprime to display results as it is running. There is also a -m option, which tells mprime to start with a menu.
i am a noob, can you explain it?
i go to a console and type

mprime -d
or
mprime -m

and nothing happens

 2007-11-21, 14:58 #4 M0CZY     May 2005 England, UK 2008 Posts Running mprime under Ubuntu 7.04 Linux I got my factoring assignment running OK under Linux. I am using mprime2414 and Ubuntu 7.04. I run it as ./mprime -m or -d Question 1. If I close the terminal window, how do I get information about mprime to start displaying again? If I type in ./mprime -m again it just tells me that mprime is already running. Question 2. When you stop Prime 95 under Windows it creates an up-to-date savefile, but stopping mprime under Linux doesn't update the savefile, is that right? I'm afraid that I have much to learn about Linux!
 2007-11-22, 19:40 #5 paulunderwood     Sep 2002 Database er0rr 2×33×83 Posts I don't run mprime and from the lack of response to your first question I wonder if there is a way to restore progress status to a terminal after the terminal has been closed. You can get mprime's process identification number -- called "pid" -- in various ways: from "top" (q to quit) or "ps aux | grep mprime" or "pidof mprime" etc. You could try then try "fg xxxx" where xxxx is the pid. If the above fails, you can kill mprime by "killall mprime" (kills all mprime programs) or with "kill xxxx" where xxxx is mprime's pid, or with "top" abd by pressing "k" (for kill) and then entering the pid. Having stopped mprime, you can restart it in a terminal. I guess mprime will write a save file when killed by the operating system. Last fiddled with by paulunderwood on 2007-11-22 at 19:48
 2007-11-22, 20:23 #6 Xyzzy     Aug 2002 23·1,069 Posts Use "nohup" or "screen". Or just redirect the output to a file (run mprime from a cron job) and you can "tail" the file any time you want. Search the forum for "cron" for examples.
 2007-11-23, 21:42 #7 mdettweiler A Sunny Moo     Aug 2007 USA (GMT-5) 3·2,083 Posts If I'm running LLR (which I understand is functionally similar to mprime on Linux) on a Ubuntu 7.10 system at startup using the "sessions" tool (System>Preferences>Sessions), is it possible to view the output for it (it appears to be running in the background), or is my only option to redirect its output to a file?
 2007-11-23, 22:12 #8 paulunderwood     Sep 2002 Database er0rr 118216 Posts Try adding to the session manager the command: Code: xterm -e "tail -f ~/llr/lresults.txt" Change to suit your llr location. "~" is short hand for you home directory. Use could equally use "gnome-terminal" instead of "xterm". I can't see how to get The Matrix effect of iteration progress Last fiddled with by paulunderwood on 2007-11-23 at 22:24
2007-11-23, 23:03   #9
mdettweiler
A Sunny Moo

Aug 2007
USA (GMT-5)

624910 Posts

Quote:
 Originally Posted by paulunderwood Try adding to the session manager the command: Code: xterm -e "tail -f ~/llr/lresults.txt" Change to suit your llr location. "~" is short hand for you home directory. Use could equally use "gnome-terminal" instead of "xterm". I can't see how to get The Matrix effect of iteration progress
I already knew I can view progress by looking at the lresults.txt file, actually what I was looking for was the % done (iterations done, to put it another way) for each individual candidate. I see what you mean, though--that would be kind of hard to do. Okay, I guess I'll just have to run llr with the -d option, and redirect its output to a file--and then, as you suggested, use the tail command to view the output. Thanks!

 Similar Threads Thread Thread Starter Forum Replies Last Post Yoshi24517 Software 15 2018-04-07 10:57 Salamander89 Software 3 2011-07-28 15:51 hesdeadjim Software 4 2010-01-01 19:03 Unregistered Information & Answers 1 2009-08-01 02:02 roemer2201 Software 9 2008-12-05 18:47

All times are UTC. The time now is 04:41.

Fri Jan 27 04:41:14 UTC 2023 up 162 days, 2:09, 0 users, load averages: 0.89, 0.92, 0.99