WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Linux, UNIX, Open Source (http://www.wcm.at/forum/forumdisplay.php?f=13)
-   -   shell_exec mit php shell script ausführen (http://www.wcm.at/forum/showthread.php?t=176576)

fenster 23.10.2005 11:09

shell_exec mit php shell script ausführen
 
hallo

habe da mal eine frage
<?php
$output = shell_exec('ls -lart');
echo "<pre>$output</pre>";
?>

funktioniert ohne probleme

wenn ich aber jetzt
<?php
$output = shell_exec('shutdown -h now');
echo "<pre>$output</pre>";
?>


verusche funktioniert das nicht

wieso ?


gruß
fenster

callas 23.10.2005 12:00

ungenügende rechte um shutdown auszuführen ?

Sloter 23.10.2005 12:40

http://de.wikipedia.org/wiki/Sudo

fenster 23.10.2005 13:06

danke funzt
 
danke funzt


Alle Zeitangaben in WEZ +2. Es ist jetzt 23:31 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag