Author Topic: How can we run the ATK programme in the bachground?  (Read 3208 times)

0 Members and 1 Guest are viewing this topic.

Offline zdhlover

  • Global Moderator
  • QuantumATK Guru
  • *****
  • Posts: 106
  • Reputation: 2
    • View Profile
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?

Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5394
  • Country: dk
  • Reputation: 89
    • View Profile
    • QuantumATK at Synopsys
Re: How can we run the ATK programme in the bachground?
« Reply #1 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 &

Offline zdhlover

  • Global Moderator
  • QuantumATK Guru
  • *****
  • Posts: 106
  • Reputation: 2
    • View Profile
Re: How can we run the ATK programme in the bachground?
« Reply #2 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 .

Offline Nordland

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 812
  • Reputation: 18
    • View Profile
Re: How can we run the ATK programme in the bachground?
« Reply #3 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.