Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Script hangs or dies when run in background. Works fine in foreground.

by mears11 (Initiate)
on Nov 12, 2005 at 03:17 UTC ( #507922=note: print w/replies, xml ) Need Help??


in reply to Script hangs or dies when run in background. Works fine in foreground.

The problem was with stderr not being redirected to a file. I had a grep call that would sometimes write to stdout when a directory was empty. I also set: $SIG{HUP} = 'IGNORE'; Just to be on the safe side. Thanks.
  • Comment on Re: Script hangs or dies when run in background. Works fine in foreground.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://507922]
help
Chatterbox?
[choroba]: Oh, the Czech one playing the German composition?
[choroba]: BTW, the elections are over. We already have the final results.
[choroba]: I should probably apply for a job somewhere abroad.
[LanX]: nope this one One day the triangle player of an orchestra gets very ill and goes to the hospital.. ..

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2017-10-21 19:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (270 votes). Check out past polls.

    Notices?