Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Re: Keeping a loop alive

by fuzzyping (Chaplain)
on May 31, 2003 at 16:12 UTC ( [id://262082]=note: print w/replies, xml ) Need Help??


in reply to Re: Keeping a loop alive
in thread Keeping a loop alive

Nope, doesn't work. As soon as tcpdump dies, the rest of it closes gracefully. Perhaps I'm overcomplicating matters, but would it help to fork() the process, then monitor the status of the child? Doesn't seem as though that would be theoretically any different than doing the "while (1)" loop.

-fp

Update: Minor correction. If I manually kill tcpdump, the loop does successfully start a new tcpdump process. It's only when I flush the states, and my ssh connection is closed, that it appears to kill off everything. I'm starting to wonder if it isn't a problem with a controlling terminal?

Replies are listed 'Best First'.
Re^3: Keeping a loop alive (insufficient spec)
by Aristotle (Chancellor) on May 31, 2003 at 16:17 UTC
    What is the "the rest of it", and of what is this rest?

    Makeshifts last the longest.

      Actually, it appears to be a controlling terminal problem. If I do $ ssh user@host 'perl script.pl &', then the behavior ceases to be a problem. Sorry for the incorrect analysis. :)

      -fp

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://262082]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-26 09:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found