![]() |
![]() |
#1 |
"James Heinrich"
May 2004
ex-Northern Ontario
2·11·132 Posts |
![]()
Help requested for *nix-ignorant me:
I normally run mprime on a few idle cores of my server (CentOS 8). Thus far been running mprime -d in a SSH window and it all works nicely. Until my home internet connection gets disrupted (and it's been unreliable recently) in which case the SSH session gets disconnected and mprime stops running (at least after a few minutes). Is there a way to start mprime and let it run in the background without needing to maintain a constant connection to the server, but be able to bring up the current status when I want to see what it's doing? |
![]() |
![]() |
![]() |
#2 |
Sep 2002
Database er0rr
2×3×691 Posts |
![]()
A couple of options might be:
Add this to your remote crontab @reboot /path/to/mprime/mprime &. You might like to investigate the screen command. Or prepend nohup to your mprime command. Last fiddled with by paulunderwood on 2021-10-25 at 21:46 |
![]() |
![]() |
![]() |
#3 |
"Curtis"
Feb 2005
Riverside, CA
2×5×232 Posts |
![]()
Using screen is dead simple:
screen ./mprime -d If session is disconnected (by accident, or on purpose with ctrl-a ctrl-d), it continues to run. Any other terminal window can reconnect to the session with "screen -r" to resume the session display. |
![]() |
![]() |
![]() |
#4 |
"Ed Hall"
Dec 2009
Adirondack Mtns
2·37·61 Posts |
![]()
I second the use of screen or tmux, with which will run the same as VBCurtis with screen.
For tmux, the invocation and keys are a little different, but it works the same. I only use tmux rather than screen because that's what I started out with prior to learning about screen. |
![]() |
![]() |
![]() |
#5 |
Romulan Interpreter
"name field"
Jun 2011
Thailand
233538 Posts |
![]()
anydesk does wonders...
|
![]() |
![]() |
![]() |
#6 |
"James Heinrich"
May 2004
ex-Northern Ontario
2·11·132 Posts |
![]() |
![]() |
![]() |
![]() |
#7 |
Aug 2002
22×32×5×47 Posts |
![]() |
![]() |
![]() |
![]() |
#8 | |
"Ed Hall"
Dec 2009
Adirondack Mtns
106428 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#9 |
If I May
"Chris Halsall"
Sep 2002
Barbados
3·3,491 Posts |
![]()
Minimalist solution...
./mprime -d </dev/null >>mprime.log 2>/dev/null & exit |
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
access to windows machine files from ubuntu machine | wildrabbitt | Hardware | 1 | 2019-02-24 18:34 |
run mprime in background | guest | Software | 9 | 2015-01-22 04:22 |
Your favourite desktop background. | Flatlander | Lounge | 8 | 2007-07-16 16:55 |
Whats going on in the background | ltd | Prime Sierpinski Project | 2 | 2006-12-26 09:40 |
What is your primary educational background? | eepiccolo | Lounge | 8 | 2002-12-28 21:25 |