QuantumATK Forum

QuantumATK => General Questions and Answers => Topic started by: zdhlover on June 13, 2009, 11:46

Title: How can we run the ATK programme in the bachground?
Post by: zdhlover on June 13, 2009, 11:46
I successfully run the ATK programme in paralleling through ssh on the tele-computer with Mpich2-1.08. I have used mpd & commond and the ATK programme's paralleling is good,but it stop work when I close the window of ssh .How can I solve the problem?
Title: Re: How can we run the ATK programme in the bachground?
Post by: Anders Blom on June 13, 2009, 12:12
Run the job under "nohup" (no hang-up).

For instance,

Code
nohup mpiexec -n 4 /opt/atk/bin/atk script.py > log.py &

Note that some instances of mpd produces a huge amount of error messages in the log when you run in the background unless you pipe stdin also. In that case, use

Code
nohup mpiexec -n 4 /opt/atk/bin/atk script.py > log.py < /dev/null &
Title: Re: How can we run the ATK programme in the bachground?
Post by: zdhlover on June 13, 2009, 13:39
 ;D ;DThanks,I have been encountered the situation that the log files become very large ,and the task stopped . I try many methods to solve the problem ,but none works.I will tyr your idea as soon as .
Title: Re: How can we run the ATK programme in the bachground?
Post by: Nordland on June 13, 2009, 17:26
I always use the command screen.

Type screen to get a seperate thread in linux/unix shell. Start the ATK and all as usual. When done press ctrl-a followed by d. It will detach the screen.
If you ever need to bring this thread back just type screen -r.