unix cron job

JeffBeall
JeffBeall used Ask the Experts™
on
i have a cron job on my HPUX box, and it runs fine ( i believe ) but i want to change it to run at 3am and 7pm. i googled cron but couldn't find how to do this.
also, is there a way to confirm that it is running? i was pretty sure it was running because every now and then i would get something in the log about it trying to sync a file but the file disappeared because it was a file in the print spool that is deleted once it prints.
when i run

crontab -e

it looks like this

 0 0-23 * * *  /usr/local/bin/rsync -au /DELTAR /t4mbu
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:

 0 3,19 * * *  /usr/local/bin/rsync -au /DELTAR /t4mbu

By default cron sends a mail to the account running it, each time it runs, so first try mail or mailx command to see if you have mails, if not you will have a cron log, in HP-UX /var/adm/cron/log

Author

Commented:
thank you, i'll try this.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial