in reply to After system call, scripts is getting terminated
#!/usr/bin/perl print "Attempting shutdown script\n"; my $sysret = system("./server_down.sh"); print "-----[ Results ]---------------\n"; print "$sysret\n"; print "-----[ End of Results ]--------\n"; #script terminates here, why ???? #below lines will not execute print "line 1"; print "line 2";
If nothing prints after "Attempting ...", then you have a problem with the shell script (or at least your efforts to invoke it).
|
|---|