Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: How do I whack the output of the shell command

by Anonymous Monk
on Dec 06, 2001 at 01:54 UTC ( #129772=note: print w/ replies, xml ) Need Help??


in reply to How do I whack the output of the shell command "exim -bp" into an array?

Open a pipe to mail and send to output of mailq to it.

$output = `mailq | grep frozen`; if ($output) { open(MAIL, "| mail -s sstock\@essex+.ac.uk"); print MAIL $output; close(MAIL); }


Comment on Re: How do I whack the output of the shell command
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2014-07-12 06:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (238 votes), past polls