[Techtalk] Newbie & crontab

Conor Daly c.daly at met.ie
Tue Nov 16 23:43:06 EST 2004


On Tue, Nov 16, 2004 at 11:30:55PM +1100 or thereabouts, Raena Lea-Shannon wrote:
> 
> I had a look at Conor's HOWTO for mondoarchive I understood the gist but I am 
> afraid that was a bit too difficult to fullly adapt/comprehend.

To use this, do something like:

at now + 10 minutes
Tivo-cron
<CTRL><d>

now do 'at -l' to get a list of jobs with for you.  There should be just
one.  Do 'ls -l /var/spool/at/' as root and look for the file owned by you
and called something like "a30000172b".  Copy this to your home directory
(or wherever) and call it something helpful (like tivo-cronscript).  Now
call that with cron and make your changes in Tivo-cron.
 
> 
> I called it Tivo-cron. 
> 
> and made a crontab in root
> 
> 30 21 * * 2   Tivo-cron
> 
> This too failed.

Did you check root's email?  There should be error messages in there.
Alternatively, capture the output from cron like this:

crontab -e
30 21 * * 2   Tivo-cron > /root/tivo.out 2>&1

"> /root/tivo.out" says "send standard output to /root/tivo.out" and "2>&1"
says "send standard error output there too"

Have a look in that file for error messages after the cron run.

Conor
-- 
Conor Daly,                   Please avoid sending me 
Met Eireann, Glasnevin Hill,  Word or PowerPoint attachments.
Dublin 9, Ireland             http://www.fsf.org/philosophy/no-word-attachments.html
Ph +3531 8064276 Fax +3531 8064247


**********************************************************************
This e-mail and any files transmitted with it are confidential 
and intended solely for the addressee. If you have received
this email in error please notify the sender.
This e-mail message has also been scanned for the
presence of computer viruses.
**********************************************************************



More information about the Techtalk mailing list