On Fre, 25 Okt 2002 at 12:09 (+0200), Kroll, Volker wrote:
On 2002-10-25 12:06:00, Carsten Ungewitter wrote:
-----------------zz-backup2l Backup-Script ------------------------------- #!/bin/bash ... ! which backup2l > /dev/null || nice -19 backup2l -b
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Ist das im Pfad? Gib doch besser den kompletten Pfad an, da cron nicht zwingend das selbe Environment wie der User root hat.
oder sorge dafür, dass der Pfad so sitzt, dass which was findet. <man which> Which takes one or more arguments. For each of its argu ments it prints to stdout the full path of the executables that would have been executed when this argument had been entered at the shell prompt. It does this by searching for an executable or script in the directories listed in the environment variable PATH using the same algorithm as bash(1). Also eine Zeile der Art export PATH=/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/bin:/usr/bin vor den Aufruf. BTW: Warum die doppelte Verneinung (*wenn nicht which kein Ergebnis bringt, dann ...*)? which backup2l > /dev/null && nice -19 backup2l -b Jan