-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday 29 August 2002 08:40 pm, Desmond Lee wrote:
> I have 2 script, one to do a back up and another to run a virsu scan on > 2 folders. I've scheduled them to run every sunday in my /etc/crontab > file. > > This is what i got in my /etc/contab file: > [dlee@142 etc]$ vi crontab > > SHELL=/bin/bash > PATH=/sbin:/bin:/usr/sbin:/usr/bin > MAILTO=root > HOME=/ > 00 2 * * sun /root/scripts/virusScan.sh > 00 1 * * sun /root/scripts/backup.sh The /etc/crontab file works a little differently. You need to specify the user the command should be run as. Perhaps: # Run virus scan at 2:00 AM every Sunday. 0 2 * * sun root /root/scripts/virusScan.sh # Run backups at 1:00 AM every Sunday 0 1 * * sun root /root/scripts/backup.sh - -- - -Michael pgp key: http://www.tuxfan.homeip.net:8080/gpgkey.txt Red Hat Linux 7.{2,3} in 8M of RAM: http://www.rule-project.org/ - -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iEYEARECAAYFAj1uxwAACgkQn/07WoAb/SsXKgCgg769OuPbZ4myVbP4MR6q8XDx a+oAoLSmrLB/x0cUZVlDDU3LHicsJ5NR =fO+H -----END PGP SIGNATURE----- -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list