Thread: mPrime over SSH
View Single Post
Old 2011-06-30, 00:44   #4
A Sunny Moo
mdettweiler's Avatar
Aug 2007

3·2,083 Posts

Originally Posted by chris2be8 View Post
I think you mean:
ssh <ip address> 'nohup /home/mprime/mprime -t >mprime.out 2>&1 & '

The single quotes round the parms passed to ssh ensure everything inside it is passed to the destination to run there. Without the redirection to mprime.out nohup would write to nohup.out, which is OK unless some other task also tries to write to it.

Your SSH connection will usually put you into your home dir. Try "ssh <ip address> pwd" to check.

You could also try running the whole ssh command under nohup on the source system.

Chris K
Whoops! I rather stupidly left out the actual nohup part in my example, rendering it rather moot. Thanks for correcting me.

Last fiddled with by mdettweiler on 2011-06-30 at 00:45
mdettweiler is offline   Reply With Quote