Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: hiding perl-wrapped command output

by fauria (Deacon)
on Feb 02, 2005 at 03:13 UTC ( [id://427126]=note: print w/replies, xml ) Need Help??


in reply to hiding perl-wrapped command output

If you use a Unix system, and bash or sh as command interpreters (this does not work under csh), you can allways relay on system file descriptors and redirect them to /dev/null:

system "ls ~ &>/dev/null"; #Supress both stderr and stdout system "ls ~ 2>/dev/null"; #Supress stderr system "ls ~ 1>/dev/null"; #Supress stdout

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2024-04-23 11:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found