Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Run shell script in perl

by helgi (Hermit)
on Feb 26, 2009 at 08:43 UTC ( [id://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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-03-19 10:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found