Hi monks,
I used "system" command to run shell script through my perl script.These shell script is to start or stop weblogic servers. In one of the scenario,i stopped the server manually,i ran my perl script which again ran shell script using system command to stop the server. After executing that line(stop server),the script got terminated instead of executing the next left out lines.I am confused what's making it get terminated ?
example:program terminates after executing system call
#!/usr/bin/perl system("./server_down.sh"); #script terminates here, why ???? #below lines will not execute print "line 1"; print "line 2";
In reply to After system call, scripts is getting terminated by nithins
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |