Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

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 examining the Monastery: (4)
As of 2016-08-27 13:41 GMT
Find Nodes?
    Voting Booth?
    The best thing I ever won in a lottery was:

    Results (380 votes). Check out past polls.