Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 taking refuge in the Monastery: (4)
As of 2025-12-10 12:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (90 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.