nilstk
Goto Top

Shell Script

Moin,

ich möchte im Apache (Suse 8.1) gerne ein Shell Script haben, welche Befehle ausführen kann bzw. andere Scripte ausführt.

Wie mache ich das? Wie überprüfe ich, ob ich Erfolg hatte (d.h. externes script erfolgreich ausgeführt)?

#!/bin/bash
echo Apache shutdown...
/etc/init.d/apache stop
exit 0

(klappt so leider nicht - Ideen?)

Content-Key: 32898

Url: https://administrator.de/contentid/32898

Printed on: April 25, 2024 at 06:04 o'clock

Member: Dani
Dani May 20, 2006 at 11:16:32 (UTC)
Goto Top
Hi,
#!/bin/bash
echo Apache shutdown...
/etc/init.d/apache stop
exit 0

/bin/bash /etc/init.d/apache stop


Gruß
Dani