Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Run shell script in perl

by helgi (Hermit)
on Feb 26, 2009 at 08:43 UTC ( #746485=note: print w/ replies, xml ) Need Help??


in reply to Run shell script in perl

Try

system ("/full/path/to/set") == 0 or die "Cannot run set:$?";
I.e. if the error code from set is anything but zero, stop running and show me the external program error code ($?). Use the full path to make sure that you're running the right thing. Also, the current directory may or may not be in your path.

--
Regards,
Helgi Briem
hbriem AT f-prot DOT com


Comment on Re: Run shell script in perl
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2014-09-19 04:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (129 votes), past polls