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?)
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?)
Please also mark the comments that contributed to the solution of the article
Content-Key: 32898
Url: https://administrator.de/contentid/32898
Printed on: April 25, 2024 at 09:04 o'clock
1 Comment