Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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 browsing the Monastery: (6)
As of 2015-07-29 04:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls