script shell da crontab
Mirco Massone
m.massone@datasiel.net
Mer 5 Dic 2007 15:00:24 CET
Qui di seguito il mio crontab, di cui non so bene cosa verificare, mi
pare tutto a posto, l'unica cosa è che esso usa sh invece che bash, ma
l'ambiente dovrebbe essere simile....
# /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.
# This file also has a username field, that none of the other crontabs do.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=ghigo
# m h dom mon dow user command
17 * * * * root run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || run-parts --report
/etc/cron.daily
47 6 * * 7 root test -x /usr/sbin/anacron || run-parts --report
/etc/cron.weekly
52 6 1 * * root test -x /usr/sbin/anacron || run-parts --report
/etc/cron.monthly
#
Qui invece la riga di cui parlo:
43 14 05 12 *
/home/mia_home/cartella1/cartella2/cartella3/cartella4/cartella5/cicla.sh
Il file cicla.sh gira perfettamente da dentro la shell digitando: ./cicla.sh
Come farlo girare dentro crontab?
-------------- parte successiva --------------
Un allegato non testuale è stato rimosso....
Nome: m_massone.vcf
Tipo: text/x-vcard
Dimensione: 432 bytes
Descrizione: non disponibile
Url: http://lists.linux.it/pipermail/glug/attachments/20071205/23b5506a/attachment.vcf
Maggiori informazioni sulla lista
glug