Re: Autostart eines SCriptes
Hallo Max...,
> Hallo zusammen,
> wie kann ich beim Systemstart ein normales Shellscript automatisch
> ausführen?
so z.B.
Rechner z.B. startet im RunLevel_2 (mein debian)
in /etc/init.d einen Link erzeugen:
ln -s /bin/hallo /etc/rc2.d/S98hallo
startet Script /bin/hallo fast als letztes.
Datei /bin/hallo erzeugen z.B. mit folgendem Inhalt:
#!/bin/sh
echo hallohallohallo
echo hallohallohallo
echo hallohallohallo
sleep 10
Anmerkung: Die Leerzeile sollte ein.
Datei hallo ausführbar machen (dann ist es ein Script):
chmod +x /bin/hallo
Rechner reboot und *freu*
Gruß Ulrich
--
Zum AUSTRAGEN schicken Sie eine Mail an debian-user-german-request@lists.debian.org
mit dem Subject "unsubscribe". Probleme? Mail an listmaster@lists.debian.org (engl)
Reply to: