Register
It is currently Fri Oct 31, 2014 3:29 pm

Why my script is always "stopped" ?


All times are UTC - 6 hours


Post new topic Reply to topic  [ 1 post ] 
Author Message
 PostPosted: Tue May 26, 2009 10:56 pm   

Joined: Tue May 26, 2009 10:52 pm
Posts: 1
This is the problem that drives me crazy. I let a script A (a.sh) call script B (b.sh).

In script A it calls B directly, without any redirecting or nohup or background.

Script A:
Code:
#do nothing but call B
ssh another-machine "/user/tom/b.sh"


Script B:
Code:
# do some fancy things, takes about 1 hour to finish
...


I used
Code:
nohup a.sh &>/tmp/log &


It was "stopped" after 5 minutes but B was running and B finished correctly.

Anybody knows why?

BTW, if I don't use nohup and backgrounding, it's OK. i.e. if I use
Code:
a.sh

directly. Everything is OK. I am totally confused.


Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot] and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP