I am trying to run a shell script from a perl script. The shell script resides in a different folder. I am using the following code.
$cmd = "cd /home/folder1/folder2 ; sh test1.sh"; system($cmd) or die "none";
I am getting the below message after execution. none at ./test3.pl line 12. Kindly help on this.
In reply to Calling a shell script after changing directory by Gouravhere
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |