Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: How to run bash file from perl

by bndgyawali (Initiate)
on May 17, 2011 at 19:08 UTC ( [id://905345]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $afile='dir1/firstfile.txt';
    my $bfile='dir2/secondfile.txt';
    ...
        print "$line";
        
    }
    
  2. or download this
    my $afile='dir1/firstfile.txt';
    my $bfile='dir2/secondfile.txt';
    @args = ("learn.sh", $afile, $bfile);
        system(@args) == 0
            or die "system @args failed: $?"
    
  3. or download this
            
    my $output=`learn.sh $afile $bfile`;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-25 10:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found