Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: How to trace a dying process

by Notromda (Pilgrim)
on Sep 05, 2003 at 21:30 UTC ( #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
Node Status?
node history
Node Type: note [id://289357]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2019-07-18 19:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?