* Zeit fehlt, dann kommt der Shutdown sofort und würgt brutal alles ab. Möglicherweise erzeugt das den Fehler in Perl!
* für Wartezeit von 10 Sekunden
shutdown -r 10
* Hast du Adminrechte für Shutdown, ansonsten gehts nicht, denke ich. Da kann sonst ja jeder den Rechner abwürgen.
Quoteexec PROGRAM LIST
The exec function executes a system command and never returns -- use system instead of exec if you want it to return. It fails and returns false only if the command does not exist and it is executed directly instead of via your system's command shell (see below).
\n\n
<!--EDIT|GwenDragon|1107888995-->