nithins has asked for the wisdom of the Perl Monks concerning the following question:
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";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: After system call, scripts is getting terminated
by roboticus (Chancellor) on Jan 08, 2014 at 12:20 UTC | |
|
Re: After system call, scripts is getting terminated
by hippo (Archbishop) on Jan 08, 2014 at 14:26 UTC | |
|
Re: After system call, scripts is getting terminated
by LanX (Saint) on Jan 08, 2014 at 11:44 UTC | |
|
Re: After system call, scripts is getting terminated
by Anonymous Monk on Jan 08, 2014 at 12:12 UTC | |
|
Re: After system call, scripts is getting terminated
by marinersk (Priest) on Jan 08, 2014 at 18:12 UTC | |
|
Re: After system call, scripts is getting terminated
by Anonymous Monk on Jan 08, 2014 at 11:39 UTC | |
|
Re: After system call, scripts is getting terminated
by oiskuu (Hermit) on Jan 08, 2014 at 21:22 UTC |