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.
#do nothing but call B
ssh another-machine "/user/tom/b.sh"
# do some fancy things, takes about 1 hour to finish
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
directly. Everything is OK. I am totally confused.