Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: How to print the contents of system function to a .txt file

by 2teez (Priest)
on Mar 12, 2013 at 05:38 UTC ( #1022924=note: print w/ replies, xml ) Need Help??


in reply to How to print the contents of system function to a .txt file

@output = system ("....")
to collect the output of the command you want to use the backticks @output = `...` or @output = qx{...} not a system function.
Please check Quote-Like-Operators.
However, to know if your command "java -jar cmdline-jmxclient-0.10.3.jar - localhost: +1100 com.ogs.red5.client.manager:name=Manager getConnectedAgents" works is a different story altogehter.

If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me


Comment on Re: How to print the contents of system function to a .txt file
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2014-09-19 04:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (129 votes), past polls