Re: Executing a Script every hour
Thanks,
I figured it out! I now have another problem. The script I'm using is
connecting to the mail server using the Net::POP3 module, and it's timing out
before I can establish my DSL connection. The module supposedly takes a Timeout
command i.e.
$pop = Net::POP3->new('pop3host', Timeout => 60);
but I haven't been able to get it to work in swendelete, I always get a
"can't connect to mail server" error when I run swendelete.pl and don't have an
active connection (I'm usind demand in ppp).
Any suggestions?
> * Christof Hurschler <hurschler@gmx.de> [2003-09-30 12:35]:
> > Is there a simpe way to have a script execute at shorter time
> > intervals. I'd like to run the swendeleter.pl script automatically
> > every so often to keep my mailbox from overfiling.
>
> I think you looked in the wrong place (took me a while, as well), from
> 'man 5 crontab':
>
> #v+
> Commands are executed by cron(8) when the minute, hour, and
> month of year fields match the current time, and when at least one
> of the two day fields (day of month, or day of week) match the
> current time (see ``Note'' below). cron(8) examines cron
> entries once every minute. The time and date fields are:
>
> field allowed values
> ----- --------------
> minute 0-59
> hour 0-23
> day of month 1-31
> month 1-12 (or names, see below)
> day of week 0-7 (0 or 7 is Sun, or use names)
> #v-
>
> Hope that helps...
>
> Regards,
> --
> dave [ please don't CC me ]
>
>
> --
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
>
--
Dr.-Ing. C. Hurschler
hurschler@gmx.de
NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien...
Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService
Jetzt kostenlos anmelden unter http://www.gmx.net
+++ GMX - die erste Adresse für Mail, Message, More! +++
Reply to: