Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: How to trace a dying process

by Notromda (Pilgrim)
on Sep 05, 2003 at 21:30 UTC ( [id://289357]=note: print w/replies, xml ) Need Help??


in reply to How to trace a dying process

As usual, questions lead to more questions. I have code like this:
while (<>) { ... }
Is it possible that a EOF character is getting printed by syslog-ng and closing down the while loop?

Replies are listed 'Best First'.
Re: Re: How to trace a dying process
by sgifford (Prior) on Sep 07, 2003 at 03:15 UTC
    Not under UNIX. EOF/EOT is CTRL-D, which is ASCII 4:
    $ printf "hi\n\004\nthere\n" |perl -e'while(<>){print}' hi there
    I have no idea about other OS's, though.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-04-20 07:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found