in reply to Re: Shuting down servers
in thread Shuting down servers
exec is not the right function as it replaces your script with the command, i.e. the call to exec will always be the last thing your script will do.
Use system() instead. And try either "poweroff server $_ &" or "nohup poweroff server $_ &", this might already be all you need to do to make it work
PS: Use </code> instead of <\code>
|
|---|