Ted Linnell
2003-08-08 08:24:42 UTC
I have a backup that needs to be run under a certain user. admin. But the
crontab gets flushed hourly, so I would like to have root run the weekly
backup.
I know you can run su - admin with in the crontab, but my syntax is not
correct.
This for is for HPUX 11.00
0 0 * * 1 su - admin /home/admin/backup/backup.sh >
/home/admin/backup/backup.log
Should becrontab gets flushed hourly, so I would like to have root run the weekly
backup.
I know you can run su - admin with in the crontab, but my syntax is not
correct.
This for is for HPUX 11.00
0 0 * * 1 su - admin /home/admin/backup/backup.sh >
/home/admin/backup/backup.log
0 0 * * 1 su - admin -c "/home/admin/backup/backup.sh >
home/admin/backup/backup.log"
Regards,
Ted.
==============================================================
| Ted Linnell <***@acslink.net.au> |
| |
| Nunawading, Victoria , Australia |
==============================================================