View Full Version : cron
After searching for cron, crontab and many others can someone tell me if there is a how to to use cron for mvchannels also clearing the log files
I have done the chip 49 pin 31 mod so dont need the others. Thanks
I belive what you asking is how to schedule cron. It makes no differnce that you are running mvchannels. Cron simply runs a specified script (or command) when you schedule it. The confusion is probably what each field in cron means. This is an example.
#field allowed values
#----- --------------
#minute 0-59 (*/5 is every 5 mins)
#hour 0-23 (1-5 is hours 1 through 5)
#day of month 1-31
#month 1-12 (or names)
#day of week 0-7 (0 is Sunday, or use names)
#
#e.g.
#0 1 * * * /usr/local/myscript
#
#every day at 1:00AM run /usr/local/myscript
There must be witespace between every entry and any output from the script would be mailed to whoevers cron ran it (I do not know how cron on tivo would act). So add:
0 4 * * * /var/hack/mvchannels reload
Of course if your mvchannsl is elsewhere change that to refelct its place. Note this will run mvchannels every day at 4:00AM (via the clock on the tivo). You could run it every hour on the hour.
0 * * * * /var/hack/mvchannels reload
every day at 4:00AM and 4:00PM
0 4,16 * * * /var/hack/mvchannels reload
or realy whatever you please. Note it uses the clock on the TiVo, not the clock the DTV. so your time is most likly in UTC not your local TZ. Unless you changes the TZ setting, but then I digress....
there is a file "cron" not crontab where is this file supposed to reside?
and is there any other basic files that need to be transferred , such as
a gz file i see in a cron zip? Sorry to be so stupid but I have read and read and it seems the further and more I read to more confused I get.
Thanks....
genericuser
08-28-2002, 04:32 PM
Search for "pixie" there are at least 2 threads on getting it installed. Also, pixiecron has a readme that tells you where everything goes.
yes there is but not a damn one tells anything about where to poke the prog... hell with it I'll stick to looping
crontab (cron table)
crontab -e edit crontab
crontab -l list crontab
crontab -r delete crontab
You may want to export the EDITOR too.
EDITOR=/hack/bin/vim (or whatever)
export EDITOR
want to know what it is?
echo $EDITOR
Yes its case sensative.
Thanks but i'll stick to loop=0 All I was trying to determine is where the file "CRON" is supposed to reside................There is probably a lot more to it getting it to run but surely it must have a particular directory to live in
I got it I got it.......Just put the original harddrive back in and plugged in the phone line everything works great :)
RUBiK
08-28-2002, 11:00 PM
Originally posted by Torg
crontab (cron table)
crontab -e edit crontab
crontab -l list crontab
crontab -r delete crontab
You may want to export the EDITOR too. btw... that'll work on pretty much any *nix system but not with this cross-compiled vixie cron as there's no 'crontab' binary... (just the cron daemon binary is cross compiled & provided by dtype)
(:
you can of course alias the edit/list/delete commands to work like that but it's easier to just vi it...
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.