[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

crontab: zwei Befehle in einer Zeile möglich?



Hallo,
 
ist es eigentlich möglich, in der crontab-Datei zwei Kommandos in eine Zeile zu schreiben???
Kann mir jemand einen Tipp geben?
 
Diese Versuche waren erfolglos:
 
*/10 * * * * ( /bin/date '+%T' ; /bin/ping -c 1 host )   >>/tmp/pingtest 2>&1
 
*/10 * * * *  /bin/date '+%T'   >>/tmp/pingtest  ; /bin/ping -c 1 host  >>/tmp/pingtest 2>&1
 
Hat jemand eine Idee oder kann man das nur mit einer Zwei-Befehle-Prozedur lösen?
 
Danke für jeden Hinweis.
 
Grüße
Thomas


Reply to: