|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
How keep running a program n an another computer via a connection ssh when the connection is closed?
Hi everybody,
I am running a program on a supercomputer via my personal computer through a ssh connection. My program take more than a day to run, so when I left work with my PC I stop the connection with the supercomputer and the program stop. I am wondering if someone know how I can manage to keep my program running on the supercomputer even if the connection with my computer is closed? Thancks in advance! Cheers Thomas |
| Sponsored Links | ||
|
|
#2
|
|||
|
|||
|
Hi, start your program in the background and protect it from the HUP-signal, which causes it to stop when you close your connection to the remote machine. Code:
nohup /path/to/your/program & This will of course only work for non-interactive programs. Edit: in case your program needs human interaction have a look if the tool screen is installed on the remote machine. |
| Sponsored Links | ||
|
|
#3
|
|||
|
|||
|
Ask the supercomputer guys ("superusers") if they have a solution.
For terminal sessions reconnection there is screen to be installed on the supercomputer. |
| Sponsored Links | ||
|
![]() |
| Tags |
| connection, program, running, stop |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ssh connection closed by ip | makarand.bhatka | AIX | 1 | 04-08-2011 12:04 PM |
| Unable to SSH into machine - ssh_exchange_identification: Connection closed by remote host | jaapar | Red Hat | 3 | 09-26-2010 07:48 AM |
| Duh, can I quit an ssh connection withOUT stopping a program running? | jccbin | Shell Programming and Scripting | 3 | 10-30-2009 03:06 PM |
| Server unexpectedly closed network connection error in passwordless in ssh through | vr_mari | Solaris | 1 | 06-25-2009 12:56 AM |
| ssh_exchange_identification: Connection closed by remote host Connection closed | jeevan_fimare | UNIX for Dummies Questions & Answers | 1 | 02-05-2009 12:43 AM |
|
|