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.

Crontab, Skript soll an jedem Wochentag ausgeführt werden.

Empfohlene Antworten

Veröffentlicht

Hallo,

habe mit crontab -e folgende Zeile hinzugefügt:

*    1     *     *     * /usr/scripting/testscript.sh

Nun wird dieses Script jeden Tag ausgeführt. Auch Samstag und Sonntag.

Wie kann ich crontab sagen, dass nur Montag bis Freitag das Script ausgeführt werden soll?

Danke,

Containy

Wie kann ich crontab sagen, dass nur Montag bis Freitag das Script ausgeführt werden soll?

Feld Nummer 5 ist dein Freund:

"A day of the week, expressed as a number from 0 through 6 (with 0 standing for Sunday)."

Also sollte Dein CronTabEintrag in etwa so aussehen:

* 1 * * 1,2,3,4,5 /usr/scripting/testscript.sh

Bye

SystemError

PS:

Auch wenn ich von solchem neumodischen (*g*) Kram ja nix halte, es gibt CronTabGeneratoren im Web, z.B.:

http://www.htmlbasix.com/crontab.shtml

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

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.