In article <[EMAIL PROTECTED]>,
Robert Temple <[EMAIL PROTECTED]> wrote:
> 
> First, I'd like to thank everyone that tried to help me with this issue. I
> appreciate your insight.
> 
> I solved the problem by going back to "Crontab 101".
> 
> I discovered you can't add cron jobs by simply editing /etc/crontab. Doh!
> 
> The solution (most of you know this, but for any other cron newbies out
> there) is to:
> 
> Make a copy of your current crontab file:
> 
> # crontab -l > cron.tmp
> 
> Edit this file to add the new cronjob:
> 
> # pico cron.tmp
> 
> Replace the current crontab with your crontab temp file:
> 
> # crontab cron.tmp

Or alternatively, get crontab to do this all for you by using the command:

# crontab -e

which will put you in an editor (default is vi) to edit the crontab file
and then activate it automatically afterwards.

If you don't want to use vi, make sure your startup file (e.g. .bashrc)
sets the EDITOR environment variable, e.g.

EDITOR=pico
export EDITOR

Cheers
Tony
-- 
Tony Mountifield
Work: [EMAIL PROTECTED] - http://www.softins.co.uk
Play: [EMAIL PROTECTED] - http://tony.mountifield.org

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Assp-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-user

Reply via email to