Unix Technical Forum

Processes dying on logout

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 ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 05:12 AM
Steve Rose
 
Posts: n/a
Default Processes dying on logout

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 05:12 AM
sol gongola
 
Posts: n/a
Default Re: Processes dying on logout

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-05-2008, 05:12 AM
GertK
 
Posts: n/a
Default Re: Processes dying on logout


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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-05-2008, 05:12 AM
Philip Lewis
 
Posts: n/a
Default Re: Processes dying on logout

man nohup

or start csh which automatically nohups. (iirc)


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-05-2008, 05:13 AM
Steve Rose
 
Posts: n/a
Default Re: Processes dying on logout

Thanks guys - as you suggested, using csh works fine. I guess there's
something about tcsh also.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:46 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com