This is a discussion on Processes dying on logout within the AIX Operating System forums, part of the Unix Operating Systems category; --> Hi, I'd like background processes I start to continue running after I logout but they keep dying. I'm trying ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi, I'd like background processes I start to continue running after I logout but they keep dying. I'm trying to run the following make script (called MyScript) and then logout: #!/bin/tcsh -x setenv OBJECT_MODE 64 cd ~/MainDir make CC=xlC_r EXTRA_FLAGS="-O3 -qarch=pwr4 -qtune=pwr4 -qipa=level=2 -qstrict -q64 -qwarn64" >& SMO3 So I type MyScript & and it starts running in the background (it is continually spawning new compile and make threads as it compiles different files and calls other programs for optimization). When I logout and then immediately log back in, the make processes have died. The make process with this level of optimization will take many hours, so I'd like to be able to logout. Anybody know what I'm doing wrong? I'm on AIX 5.1 in tcsh Thanks, Steve Rose steve.rose@ngc.com |
| |||
| Steve Rose wrote: > > Hi, > > I'd like background processes I start to continue running after I > logout but they keep dying. I'm trying to run the following make > script (called MyScript) and then logout: > > #!/bin/tcsh -x > setenv OBJECT_MODE 64 > cd ~/MainDir > make CC=xlC_r EXTRA_FLAGS="-O3 -qarch=pwr4 -qtune=pwr4 -qipa=level=2 > -qstrict -q64 -qwarn64" >& SMO3 > > So I type MyScript & and it starts running in the background (it is > continually spawning new compile and make threads as it compiles > different files and calls other programs for optimization). When I > logout and then immediately log back in, the make processes have died. > The make process with this level of optimization will take many > hours, so I'd like to be able to logout. Anybody know what I'm doing > wrong? > > I'm on AIX 5.1 in tcsh > > Thanks, > > Steve Rose > steve.rose@ngc.com I had a similar experience. It happened when i started a background job run under ksh. When I start the background job from csh, it continues to run even after logging out. I have no idea why it works this way. sol |
| |||
| sol gongola wrote: > Steve Rose wrote: > >>Hi, >> >>I'd like background processes I start to continue running after I >>logout but they keep dying. I'm trying to run the following make >>script (called MyScript) and then logout: Try using nohup: # nohup MyScript & Regards, Gert |