|
hi all
suppose i am having a add.sh file of linux shell script. i want to execute this .sh file in perl. What is the command to execute a .sh file in perl.
Thanks in advance
Reagards
Pandurang
|
|
|
try the system command
http://perldoc.perl.org/functions/system.html
Should look something like
@args = ("command.sh", "arg1", "arg2");
system(@args) == 0
or die "system @args failed: $?"
You may need to insure command.sh is in your path or that you use an absolute path to the shell script.
semper fi...
|
|
|
hey thanks man....
really really lots of thanks
|
|
|
|
|