mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Software (https://www.mersenneforum.org/forumdisplay.php?f=10)
-   -   Getting mprime output on console window. (https://www.mersenneforum.org/showthread.php?t=24860)

wildrabbitt 2019-10-19 15:12

Getting mprime output on console window.
 
Hi,


I run mprime on ubuntu. Since I put it in the startup folder to run when my machine starts, I don't get any output. I'd like to know what ms/iter I'm getting.


Is there anything I can do?


Will

Prime95 2019-10-19 15:34

mprime -d

wildrabbitt 2019-10-19 16:08

I've tried putting the command


mprime/mprime -d


as the command run on boot.


The thing is, because the program isn't started [B]from[/B] the console, there's nothing to see.


If I run mprime -d after boot, mprime says there's another mprime running so nothing happens.

Prime95 2019-10-19 16:27

This is my crontab entry:
[CODE]@reboot screen -S mprime -d -m /home/george/Prime95/mprime -d[/CODE]

Screen -r lets me see mprime's output whenever I'm in the mood.

wildrabbitt 2019-10-19 16:41

Does ubuntu have crontab file or whatever it is? All I know how to do is enter a command in a window box called startup applications.

paulunderwood 2019-10-19 16:46

[QUOTE=wildrabbitt;528365]Does ubuntu have crontab file or whatever it is? All I know how to do is enter a command in a window box called startup applications.[/QUOTE]

Yes, Ubuntu should have a crontab, To list use [C]crontab -l[/C] and to edit it use [C]crontab -e[/C]. Then insert the "@reboot" line like the one given by Prime95 and remove the "startup" method you did.

ewmayer 2019-10-20 02:18

[QUOTE=Prime95;528364]This is my crontab entry:
[CODE]@reboot screen -S mprime -d -m /home/george/Prime95/mprime -d[/CODE]

Screen -r lets me see mprime's output whenever I'm in the mood.[/QUOTE]

For Mlucas runs, I just do '[i]tail -2 [path to run directory]/*stat && date[/i]'. As each assignment finishes I move its pXXX* files (every-10Miter persistent savefiles and .stat file) into an archive directory, so there is once again a unique .stat file in the rundir, which is a requirement for 'tail' with any non-default line-display count to work.

wildrabbitt 2019-10-20 13:38

Thanks very much guys. I've got crontab to do what I needed. Thanks.

wildrabbitt 2019-11-13 10:13

Hi guys,


I've got into a bit of trouble.


My crontab file has these two lines in


@reboot screen -S mprime -d -m \home\william\mprime\mprime -d
@reboot pactl load-module module-loopback



When I type in screen -r I'm told there's no screen to resume. Is there anything obviously wrong?

paulunderwood 2019-11-13 10:59

[QUOTE=wildrabbitt;530444]Hi guys,


I've got into a bit of trouble.


My crontab file has these two lines in


@reboot screen -S mprime -d -m \home\william\mprime\mprime -d
@reboot pactl load-module module-loopback



When I type in screen -r I'm told there's no screen to resume. Is there anything obviously wrong?[/QUOTE]

Use forward slashes.

wildrabbitt 2019-11-13 11:26

Thanks.

storm5510 2019-11-29 15:58

I decided to put Ubuntu onto my HP, and everything seems to be working. Thanks to this thread, I have an output on the screen.

My question: Is using Ctrl-Z a proper way to stop [I]mprime[/I] or is it better to simply close the terminal window?

pepi37 2019-11-29 16:17

[QUOTE=storm5510;531692]I decided to put Ubuntu onto my HP, and everything seems to be working. Thanks to this thread, I have an output on the screen.

My question: Is using Ctrl-Z a proper way to stop [I]mprime[/I] or is it better to simply close the terminal window?[/QUOTE]
I use top, find process ID and kill it

paulunderwood 2019-11-29 16:41

[QUOTE=pepi37;531693]I use top, find process ID and kill it[/QUOTE]

That is one way. Or you can see if is running with (process ID) [c]pidof mprime[/c] and the stop it completely with [c]killall mprime[/c]

^C (Ctrl-c) in a terminal running it will stop it too.

^Z (Ctrl-z) merely suspends it and you can use [c]fg[/c] to resume it.

storm5510 2019-11-29 17:29

[QUOTE=paulunderwood;531695]That is one way. Or you can see if is running with (process ID) [c]pidof mprime[/c] and the stop it completely with [c]killall mprime[/c]

^C (Ctrl-c) in a terminal running it will stop it too.

^Z (Ctrl-z) merely suspends it and you can use [c]fg[/c] to resume it.[/QUOTE]

[c]Ctrl-Break[/c] does not work. When I would restart, it would say that [I]mprime[/I] was already running. I would go to the System Monitor, find it in a long list, and kill it from there. I remember using ^C in the past, but did not think of it in this instance.

Linux, whatever flavor, is mentioned here a lot and I am determined to learn it. I feel I have made a tiny bit of progress in just a few hours. I am quite pleased with how it [[I]mprime[/I]] is running.

[U]Thank you[/U]! :smile:


All times are UTC. The time now is 18:30.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.