Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: How to run bash file from perl

by raybies (Chaplain)
on May 17, 2011 at 15:13 UTC ( [id://905296]=note: print w/replies, xml ) Need Help??


in reply to How to run bash file from perl

This solution might not be fancy enough... but...

if it must be bash, then just as you start a perl script with the #!, you start your bash shell script with its own...

#!/bin/bash

(assuming that bash is in the /bin dir).

Then just do a system() call to your learn.sh script from within Perl with the commandline args...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2025-06-20 07:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.