Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^5: running command line from Perl

by NetWallah (Canon)
on May 18, 2022 at 15:14 UTC ( [id://11143978]=note: print w/replies, xml ) Need Help??


in reply to Re^4: running command line from Perl
in thread running command line from Perl

Documentation for system explicitly says:

This is not what you want to use to capture the output from a command; for that you should use merely backticks or qx//, as described in "`STRING`" in perlop. Return value of -1 indicates a failure to start the program or an error of the wait(2) system call (inspect $! for the reason).

                "These opinions are my own, though for a small fee they be yours too."

Replies are listed 'Best First'.
Re^6: running command line from Perl
by LanX (Saint) on May 18, 2022 at 15:48 UTC
    It's worth noting that AnoMonk was right, the output of the command bypassed Perl (instead of being printed by Perl) and went via STDOUT directly to the console.

    I've updated the misleading node.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2024-03-19 06:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found