Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: How to log a system call

by samarzone (Pilgrim)
on Dec 13, 2010 at 08:23 UTC ( #876821=note: print w/ replies, xml ) Need Help??


in reply to How to log a system call

system returns the exit code of the command executed, which can be seen as "0" in your log file, and not the output. If you want the output of the shell script in the perl script you should use backticks (``) instead.

my @syb1 = `/home/cfso/scripts/EVL_Loggers/check_tlm_MCF_EA_SYB1.csh`;


Comment on Re: How to log a system call
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2014-11-26 05:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (162 votes), past polls