[nSLUG] crontab help

Dop Ganger nslug at fop.ns.ca
Fri Nov 2 15:07:49 ADT 2007


On Fri, 2 Nov 2007, Vikram Chhatre wrote:

> Changed the editor to nano:
>
> $echo $EDITOR
> $/usr/local/bin/nano
>
> $crontab -e
> skipping 14 old session files
> reading /var/spool/cron/crontab.24785
> Read /var/spool/cron/crontab.24785, 0 lines, 0 chars
>
> $crontab -l
> no crontab for vikram
>
> #crontab -e -u vikram
> skipping 14 old session files
> reading /var/spool/cron/crontab.24785
> Read /var/spool/cron/crontab.24785, 0 lines, 0 chars
>
> What gives?

I'm not quite sure how you've managed that, but something's obviously gone 
wonky. You can try editing the crontab by hand by editing 
/var/spool/cron/crontabs/vikram (or wherever the relevant directory is) 
and putting a test comment in there and see if crontab -e -u vikram picks 
it up. Bear in mind you'll have to set the ownership on the file 
appropriately, which might be tricky since you don't have a working 
example to go off!

Cheers... Dop.



More information about the nSLUG mailing list