No that won't make it run 12 times an hour. That will make it run 12 minutes after each hour. One way I have seen it done is with */12 or you can use the brute force method and list a comma delimited set of minutes per hour in which to run the job. Keith Lynn Systems Administrator School of Computer and Information Sciences University of South Alabama Mobile, AL 36608 Phone: (334) 460-6390 Fax: (334) 460-7274 Alternative E-mail: [EMAIL PROTECTED] URL: http://www.cis.usouthal.edu/~lynn/ On Sun, 23 Sep 2001, Franki wrote: > cool,, mcedit makes much more sense to me then vi (though I should probably > learn to use it at some stage.. at present I use mcedit or pico for > everything..) > > anyway, if I want to run it every five minutes... is this the right format? > > 12 * * * * /sbin/nimda > > ie run it 12 times an hour?? is that right? or does that run it 12 times a > minute?? > > rgds > > Frank > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Keith Lynn > Sent: Sunday, 23 September 2001 9:59 PM > To: Franki > Cc: NEWBIE Mandrake List > Subject: Re: [newbie] crontab -e doesn't work... > > > The way I do it is to export the editor that I use as the default editor, > export EDITOR=pico, and then do crontab -e. > > Keith Lynn > Systems Administrator > School of Computer and Information Sciences > University of South Alabama > Mobile, AL 36608 > Phone: (334) 460-6390 > Fax: (334) 460-7274 > Alternative E-mail: [EMAIL PROTECTED] > URL: http://www.cis.usouthal.edu/~lynn/ > > > On Sun, 23 Sep 2001, Franki wrote: > > > Hi all, > > > > I have been trying to add an entry to contab for root on my mdk 7.2 > system.. > > > > when I type crontab -e it brings up a screen with an entry at the top and > > one at the bottom and a funny ~ char at the start of all the lines in > > between. > > > > like so: > > > > > > 0 * * * * /etc/iscan/prescan.cgi >/dev/null 2>&1 > > ~ > > ~ > > > > I cut out a heap of these characters, but you get the point. > > ~ > > ~ > > ~ > > ~ > > ~ > > ~ > > "/tmp/crontab.16832" 1L, 49C > > > > I can't seem to add one and I really need to. > > > > I want to add something like: > > > > 05 * * * * /sbin/nimda >/dev/null 2>&1 > > > > so that it runs my scan that adds nimda and code red clients to my > ipchains > > rules to block them... > > > > it needs to run alot so I figure that every five minutes would be good. > > (have I done that right?) > > > > can anyone tell me why I can't enter anything? and can't I just edit a > file > > with mcedit? > > > > I can move the cursur to the start and end of the top line, but nowhere > > else, and I can't get a newline (also, I am trying to do this via ssh as > > root.) > > > > > > any suggestions would be much appreciated. > > > > > > regards > > > > Frank > > > > > > > > > > > > > > > > > > > > > > >
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
