Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

Hi ihr.

Ich habe probleme, in Suse 9.1 einen cronjob anzulegen, der bei jedem Systemstart einmal ausgeführt wird. Google sagt, statt des gängigen Zeitschemas (Sekunden|Minuten|Stunden|usw.) kann dazu in der /etc/crontab einfach eine Zeile mit "@reboot" begonnen werden.

Leider wird bei mir dann der dahinter aufgeführte Befehl nicht ausgeführt. Egal, ob ich dort ein Skript aufrufe, oder einen Befehl ausführe.

Anbei meine /etc/crontab:


SHELL=/bin/sh

PATH=/usr/bin:/usr/sbin:/sbin:/bin:/usr/lib/news/bin

MAILTO=root

#

# check scripts in cron.hourly, cron.daily, cron.weekly, and cron.monthly

#

-*/15 * * * *   root  test -x /usr/lib/cron/run-crons && /usr/lib/cron/run-crons >/dev/null 2>&1

59 *  * * *     root  rm -f /var/spool/cron/lastrun/cron.hourly

14 4  * * *     root  rm -f /var/spool/cron/lastrun/cron.daily

29 4  * * 6     root  rm -f /var/spool/cron/lastrun/cron.weekly

44 4  1 * *     root  rm -f /var/spool/cron/lastrun/cron.monthly

@reboot	root /root/SkriptDasIchAusführenWill.sh

Was mache ich falsch?

Danke,

Anday

Hmm.. wie "Bedeutung"? Ich will einfach, dass das Skript ausgeführt wird, wenn ich Linux starte. Deine Bemerkung impliziert, dass es da noch andere/bessere Wege gibt, als den cronjob. Also, wie stell ich es besser an?

Sry.. bin ein ziemlicher Linux-noob.. :(

Hey.. danke für die Antworten. Mit Hilfe von alligators Denkanstoß bin ich dann gestern noch auf die Methode mit init.d gekommen. Scheint jetzt alles einwandfrei zu funktionieren.

Wieder was dazugelernt. Vielen Dank!

have a nice day.

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.