Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: How to run bash file from perl

by ciderpunx (Vicar)
on May 17, 2011 at 15:39 UTC ( [id://905304]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        @args = ("learn.sh", "arg1", "arg2");
        system(@args) == 0
            or die "system @args failed: $?"
    
  2. or download this
    my $output = qx/learn.sh arg1 arg2/
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2024-07-21 20:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.