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

Re: execute shell script from perl

by NetWallah (Canon)
on Sep 29, 2017 at 05:45 UTC ( [id://1200350]=note: print w/replies, xml ) Need Help??


in reply to execute shell script from perl

Following up on choroba(++)'s post , this produces the expected result:
perl -E 'say for qx(/bin/bash -c "cat <<< \\"This is text\\"")'

                All power corrupts, but we need electricity.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-26 07:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found