Uhh, in my opinion it's best to leave cron.hourly and cron.daily alone. Read the
manpage; every user can set his own cron up using crontab (editing with crontab
-e). It's possible to specify time in a very very flexible way there. For
example: every 5 minutes; every 2nd minute after a quarter of an hour has passed
by (02;17;32;47), every 14'th day of any odd-numbered month at 16:28, etc...
I could explain everything here, but "man 5 crontab" can do a much better job at
that than I can without quoting it ;-)
One thing though; crontab -e uses vi as its editor. If you don't know how to
work with it, there's a workaround: simply type "export VISUAL=joe" at the
prompt before you do "crontab -e". It then uses joe as its editor. You can set
whatever you want with it; I just used joe as example beause it's the editor I
mostly use.
In addtion you might look at "man crontab" and "man cron" for more info.
And uhh... Where's that site? Just out of curiosity :-)
On Mar 20 [EMAIL PROTECTED] wrote:
> Hey all.. After a period of inactivity I am back on my work project..
> I'm really close but have some cron questions.. Here's what I'm doing..
>
> I have a linux box running Mdk 6.1.. It has 2 nics. One has a static
> internet ip address.. The other has an address that is in the range of 2
> SGI machines and a Solaris machine that are on the tv weatherman's
> network at work ( tv station ).
>
> The idea of this is to FTP .jpg maps to the web site.. I got the mdk
> box up and running, and using ncftpget and ncftpput, I can get all the
> maps in a command.. Long ncftp command line, made into a script..
> Then I chmod a+x'ed em.. So I can "get" all the maps off the SGI Indigo
> 2 by typing ./ftpget..
>
> In turn send em to the web via ./ftpput.. I'm very happy about my
> progress in this.. I'm a new Linux user and was challenged by the boss
> to do this.. So all I need to do now is automate this..
>
> Using cron.. From what I'm reading, cron can execute scripts.. right??
> Just like the scripts I created..
>
> If I put both ./ftpget then ./ftpput in cron.hourly, it will do this
> once an hour,, right??? I have also been reading about being able to
> specify an exact time in cron.. ( this is more wanted, due to certain
> maps being updated at specific hourly times..)
>
> So also in addition to the above, I would like to add rdate --sp
> time.xx.xx to cron.daily then
> the systohc stuff.. Both of these need root permission.. Can cron do
> this?? I'm a little vague on this..
>
> Both the ftp commands are exec by user..
>
> If someone can help, I would be more than greatful, since I've been
> working on this for sometime and have learned
> GOBS about linux.. I just find the man cron a little vague about a
> number of things..
>
> THanks!
> Alan
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
>
--
Rial Juan <http://nighty.ulyssis.org>
e-mail: [EMAIL PROTECTED]
Belgium tel: (++32) 89/856533
ulyssis system admininstrator <http://www.ulyssis.org>
The little critters in nature; they don't know they're ugly.
That's very funny... A fly marying a bumble-bee...
------------------------------------------------------------
Sign the petition at http://www.libranet.com/petition.html
Help bring us more Linux Drivers