Hallo Zusammen,
heb ein Problem kann das Bakup.pl nicht als Cronjob Starten. Bekomme immer die Fehlermeldung Feb 9 12:28:01 localhost /USR/SBIN/CRON[20170]: (CRON) error (grandchild #20172 failed with exit status 127).
mein Crontab ist wie folgt:
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
28 12 * * 1-5 otrs $HOME/opt/otrs/scripts/backup.pl
#
Das bakup.pl wird über die Shell ganz Normal ausgeführt, die ISO Datei wird im Verzeichnis BACKUP abgelegt.
Hat jemand eine Idee was hier Falsch ist ?
OTRS 4 Backup.pl über Crontab Starten ?
Re: OTRS 4 Backup.pl über Crontab Starten ?
der Pfad...
$HOME/opt/otrs/scripts/backup.pl
$HOME/opt/otrs/scripts/backup.pl
My english is better than your german 
"Produktiv": OTRS: 5.0.x, OTRS::ITSM 5.0.x
"Testing": OTRS 6 git
OS: Debian 8.0 (Jessie)
Apache2.4.10/MySQL 5.5.41

"Produktiv": OTRS: 5.0.x, OTRS::ITSM 5.0.x
"Testing": OTRS 6 git
OS: Debian 8.0 (Jessie)
Apache2.4.10/MySQL 5.5.41
-
- Znuny guru
- Posts: 2210
- Joined: 13 Mar 2014, 09:16
- Znuny Version: 6.0.14
- Real Name: Rolf Straub
Re: OTRS 4 Backup.pl über Crontab Starten ?
Hah, da musste ich auch dreimal hinschauen.
@saboca deine $HOME Variable sollte schon auf "/opt/otrs/" stehen. D.h. nach deinem Pfad sucht Cron in:
@saboca deine $HOME Variable sollte schon auf "/opt/otrs/" stehen. D.h. nach deinem Pfad sucht Cron in:
Code: Select all
/opt/otrs/opt/otrs/scripts/backup.pl
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS