Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

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

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2016-10-23 16:54 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (301 votes). Check out past polls.