Alternatively you can still use Vi, use "crontab -e".
But, BEFORE you want to save and exit your cron job(s):
Type: ":set backupcopy&vi"  <CARRIAGE RETURN>
Type: ":wq" <CARRIAGE RETURN>

This will allow you to still use vi.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Bruce
Timberlake
Sent: 06 March 2006 04:15
To: Cobalt Users
Cc: Cobaltfacts mailing list
Subject: [cobaltfacts] Re: [cobalt-users] Cron Jobs...


> 5,15,25,35,45,55 * * * * /usr/bin/lynx -source
> "http://www.yourserver.com/vbdir/gateway.php";
>
> Would this work on a cobalt if i add it to a crontab -e ???

Yes, although the vi editor is broken from a patch IIRC, so you first
need to set a new editor

su -
export EDITOR=pico

Then do the

crontab -e

step and put in the contents you have listed

> Or maybe i should just add a file with the above contents into the
quarter-hourly
> cron but without the times on the front??

You can do that as well, just make it an executable shell script:

#!/bin/sh
/usr/bin/lynx -source "http://www.yourserver.com/vbdir/gateway.php";

Remember to chmod +x the script in the cron directory or it won't be
executed.

I prefer the latter approach myself, as you don't need to wonder what
user the cron job was set up for, etc.

_______________________________________________
Cobaltfacts site list
[email protected]
http://list.cobaltfacts.com/mailman/listinfo.cgi/cobaltfacts

_______________________________________________
Cobaltfacts site list
[email protected]
http://list.cobaltfacts.com/mailman/listinfo.cgi/cobaltfacts

Reply via email to