Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: Exiting backticks early

by bobn (Chaplain)
on Mar 09, 2018 at 19:09 UTC ( [id://1210589]=note: print w/replies, xml ) Need Help??


in reply to Re: Exiting backticks early
in thread Exiting backticks early

Isn't killing the feeding process done by SIGPIPE handling?
$ perl -e ' @a = `cat /etc/passwd | head -3 `; print for @a' root:x:0:0:root:/root:/bin/bash daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin bin:x:2:2:bin:/bin:/usr/sbin/nologin $ ps auxww | fgrep 'cat /etc/passwd' bobn 26404 0.0 0.0 9376 764 pts/10 S+ 13:11 0:00 fgrep + --color=auto cat /etc/passwd $

--Bob Niederman,

All code given here is UNTESTED unless otherwise stated.

Replies are listed 'Best First'.
Re^3: Exiting backticks early
by LanX (Saint) on Mar 09, 2018 at 19:22 UTC

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (1)
As of 2024-04-19 18:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found