CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

keep process running

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 8, 2000, 10:03
Default keep process running
  #1
Jian Xia
Guest
 
Posts: n/a
Dear friends,

We are using SGI ORIGIN 2000 system. I tried to keep a process xj(a fortran excute file) running after I logged out. So I typed command: "nohup xj", then logged out. But the process xj stopped at the sametime I logged out. Could any one help me? Thanks.
  Reply With Quote

Old   September 8, 2000, 10:12
Default Re: keep process running
  #2
Bart Prast
Guest
 
Posts: n/a
do this: type xj then type CTRL-z (puts the process on hold) then type bg (puts the process in the background) then logout

make sure the program doesn't send any information to the screen as it will stop while trying to do so
  Reply With Quote

Old   September 8, 2000, 10:29
Default Re: keep process running
  #3
Zhengtong Xie
Guest
 
Posts: n/a
Hi,

An easy way: xj>temp & ; that means put your screen message to temp, and run the code in the background. Then you could logout.

Good luck
  Reply With Quote

Old   September 8, 2000, 10:49
Default Re: keep process running
  #4
Mark Olesen
Guest
 
Posts: n/a
This likely a shell problem. I've experience the same with the SunOS 5.7 ksh, but have had no problems with our SGI's ksh.

"foocmd &" *should* work without difficulties on (t)csh since SIGHUP is caught by cshell.

"nohup foocmd&" or "nohup foocmd > /dev/null&" is required by ksh, since SIGHUP may not be properly (mostly never) caught by ksh

Thus nohup will ALWAYS work, sometimes. For a fully bulletproof backgrounded cmd use 'at' instead: "at -f foocmd.script" now

This also keeps your mailer busy and out of trouble.

cheers, ------------------------------------------------------ Dr. Mark Olesen ZEUNA STAERKER GmbH & Co. KG Biberbachstr. 9 tel: +49 / 821 / 4103-862 D-86154 Augsburg, GERMANY ------------------------------------------------------
  Reply With Quote

Old   September 8, 2000, 13:18
Default Re: keep process running
  #5
kakollu
Guest
 
Posts: n/a
nohup is the right the way to do it, may u should check the man pages for nohup. cox
  Reply With Quote

Old   September 8, 2000, 20:50
Default Re: keep process running
  #6
Jian Xia
Guest
 
Posts: n/a
thanks
  Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Almost have my cluster running openfoam, but not quite... bjr OpenFOAM Running, Solving & CFD 17 March 6, 2020 09:52
Cyclic BC with parallel running rdrr84 OpenFOAM Running, Solving & CFD 2 September 30, 2011 05:43
[PyFoam] Running multiple instances of solver using MPI and PyFoam bfa OpenFOAM Community Contributions 3 January 25, 2011 17:57
Kubuntu uses dash breaks All scripts in tutorials platopus OpenFOAM Bugs 8 April 15, 2008 07:52
Process Editor shows no running jobs tchavdarov OpenFOAM Pre-Processing 1 March 9, 2005 03:43


All times are GMT -4. The time now is 19:36.