Off-Topic > Off-Topic - Tiny Tux's Corner

[Solved] Learning Cron

<< < (3/3)

Rich:
Hi remus
If you run crontab -l does it list your job?

remus:
Thanks for your tip gerald_clark,
I've updated the update.log.sh file
from

--- Code: ---#!/bin/sh

echo "The date/time is : $(date)" >> timelog ;
--- End code ---
to

--- Code: ---#!/bin/sh

echo "The date/time is : $(date)" >> /home/tc/timelog ;
--- End code ---
to include absolute path's
both files are in my tc home dir

I added the following to /opt/.filetool.sh
var/spool/cron
etc/cron.allow
I made a backup with "filetool.sh -b"
and rebooted, just in case that would help, but its still not working.

Hi Rich,
Heres my output from "crontab -l"

--- Code: ---$ crontab -l
SHELL=/bin/sh
PATH=/usr/sbin:/usr/bin

# Jobs
* * * * * sh /home/tc/update.log.sh

--- End code ---

remus:
I did a google search for
cron troubleshooting 
And found some useful tips at this website.
http://kb.mediatemple.net/questions/1588/Troubleshooting+common+issues+with+cron+jobs#gs

After making sure I used ONLY "absolute paths" and making a few changes to file permissions, it started working just fine.

Thanks guys :)

Navigation

[0] Message Index

[*] Previous page

Go to full version