Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 rifling through the Monastery: (9)
As of 2014-12-23 00:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (133 votes), past polls