Re: Executing a Script every hour

2003-10-03 Thread Erik Steffl
Pigeon wrote: On Wed, Oct 01, 2003 at 07:55:30PM -0700, Paul Johnson wrote: On Wed, Oct 01, 2003 at 12:15:19PM -0400, Derrick 'dman' Hudson wrote: anacron. cron and anacron solve similar problems but with a different approach based on different requirements. The two are not mutually exclusive.

Re: Executing a Script every hour

2003-10-03 Thread Christof Hurschler
Thank god it's not all that obvious (as this thread implies), because when I first started to look at the cron and andcron man pages, I didn't really know where to start. I've set up a crontab entry in /etc/cron.d for my script, which I guess it the right way to go. I didn't use Kcron, which I

Re: Executing a Script every hour

2003-10-02 Thread Paul Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Oct 03, 2003 at 01:04:04AM +0100, Pigeon wrote: > > Ah. Well, that's for stuff that has to be run even when the machine's > > down. > > I'd love to be able to run stuff when my machine's down. :-) What did > you actually mean? Anacron runs c

Re: Executing a Script every hour

2003-10-02 Thread Bijan Soleymani
On Fri, Oct 03, 2003 at 01:04:04AM +0100, Pigeon wrote: > On Wed, Oct 01, 2003 at 07:55:30PM -0700, Paul Johnson wrote: > > On Wed, Oct 01, 2003 at 12:15:19PM -0400, Derrick 'dman' Hudson wrote: > > > anacron. > > > > > > cron and anacron solve similar problems but with a different approach > > >

Re: Executing a Script every hour

2003-10-02 Thread Pigeon
On Wed, Oct 01, 2003 at 07:55:30PM -0700, Paul Johnson wrote: > On Wed, Oct 01, 2003 at 12:15:19PM -0400, Derrick 'dman' Hudson wrote: > > anacron. > > > > cron and anacron solve similar problems but with a different approach > > based on different requirements. The two are not mutually exclusive

Re: Executing a Script every hour

2003-10-01 Thread Paul Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, Oct 01, 2003 at 12:15:19PM -0400, Derrick 'dman' Hudson wrote: > anacron. > > cron and anacron solve similar problems but with a different approach > based on different requirements. The two are not mutually exclusive. Ah. Well, that's for

Re: Executing a Script every hour

2003-10-01 Thread Derrick 'dman' Hudson
On Tue, Sep 30, 2003 at 11:23:03PM -0700, Paul Johnson wrote: | On Tue, Sep 30, 2003 at 10:11:19PM +0200, Christof Hurschler wrote: | > I've scanned the cron man pages, but it seems that cron is only | > set up to do daily, weekly, and monthly jobs in Debian. | | Where did you get that impression?

Re: Executing a Script every hour

2003-10-01 Thread David J. Weller-Fahy
* Christof Hurschler <[EMAIL PROTECTED]> [2003-10-01 04:41]: > I set the ppp option "demand" which like you said connects when I try > to access the network. It terminates the connection after 60 seconds > of no traffic. It takes maybe 20 seconds to connect (I haven't > actually timed it), which

Re: Executing a Script every hour

2003-10-01 Thread Christof Hurschler
I set the ppp option "demand" which like you said connects when I try to access the network. It terminates the connection after 60 seconds of no traffic. It takes maybe 20 seconds to connect (I haven't actually timed it), which isn't exactly instantaneous, but much faster than my old modem! I do

Re: Executing a Script every hour

2003-09-30 Thread David J. Weller-Fahy
* Christof Hurschler <[EMAIL PROTECTED]> [2003-09-30 22:17]: > Tha sounds like a very logical thing to do, as you can tell I'm a > newbie. Do you mean running the script from ip-up?? Assuming the script ip-up runs *after* the DSL connection is established, then yes. When it comes to dial-up/ppp

Re: Executing a Script every hour

2003-09-30 Thread Paul Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, Sep 30, 2003 at 10:11:19PM +0200, Christof Hurschler wrote: > I've scanned the cron man pages, but it seems that cron is only set up to do > daily, weekly, and monthly jobs in Debian. Where did you get that impression? man 5 crontab - --

Re: Executing a Script every hour

2003-09-30 Thread Christof Hurschler
Tha sounds like a very logical thing to do, as you can tell I'm a newbie. Do you mean running the script from ip-up?? Maybe somone can tell me how to tell pppd to connect, i.e. without for instance running ping? Thanks, Chris > * Christof Hurschler <[EMAIL PROTECTED]> [2003-09-30 15:04]: > > $

Re: Executing a Script every hour

2003-09-30 Thread David J. Weller-Fahy
* Christof Hurschler <[EMAIL PROTECTED]> [2003-09-30 15:04]: > $pop = Net::POP3->new('pop3host', Timeout => 60); Perl, eh? Never played around with that language, sorry. > 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 sw

Re: Executing a Script every hour

2003-09-30 Thread Christof Hurschler
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 =>

Re: Executing a Script every hour

2003-09-30 Thread Kirk Strauser
At 2003-09-30T20:47:44Z, Erik Steffl <[EMAIL PROTECTED]> writes: > 00,15,30,45 * ... > >would be executed every 15 minutes "*/15" is a handy shortcut for the same thing. That's particularly handy for jobs that need to run, say, every 3 minutes. -- Kirk Strauser In Googlis non est, ergo non

Re: Executing a Script every hour

2003-09-30 Thread Rus Foster
On Tue, 30 Sep 2003, Christof Hurschler wrote: > Hi, > > I've scanned the cron man pages, but it seems that cron is only set up to do > daily, weekly, and monthly jobs in Debian. > > Is there a simpe way to have a script execute at shorter time intervals. I'd > like to run the swendeleter.pl scrip

Re: Executing a Script every hour

2003-09-30 Thread Paul William
To get access to your cron conf file run $crontab -e It will open up your defualt editor. This means you do not have to be root to change cron run times. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Re: Executing a Script every hour

2003-09-30 Thread Kenward Vaughan
On Tue, Sep 30, 2003 at 10:11:19PM +0200, Christof Hurschler wrote: > Hi, > > I've scanned the cron man pages, but it seems that cron is only > set up to do daily, weekly, and monthly jobs in Debian. > > Is there a simpe way to have a script execute at shorter time > intervals. I'd like to run th

Re: Executing a Script every hour

2003-09-30 Thread Monique Y. Herman
On Tue, 30 Sep 2003 22:11:19 +0200, Christof Hurschler <[EMAIL PROTECTED]> penned: > Hi, > > I've scanned the cron man pages, but it seems that cron is only set up to do > daily, weekly, and monthly jobs in Debian. > > Is there a simpe way to have a script execute at shorter time intervals. I'd

Re: Executing a Script every hour

2003-09-30 Thread David J. Weller-Fahy
* Christof Hurschler <[EMAIL PROTECTED]> [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 wh

Re: Executing a Script every hour

2003-09-30 Thread David Z Maze
Christof Hurschler <[EMAIL PROTECTED]> writes: > I've scanned the cron man pages, but it seems that cron is only set > up to do daily, weekly, and monthly jobs in Debian. > > Is there a simpe way to have a script execute at shorter time > intervals. I'd like to run the swendeleter.pl script automa

Re: Executing a Script every hour

2003-09-30 Thread Erik Steffl
Christof Hurschler wrote: Hi, I've scanned the cron man pages, but it seems that cron is only set up to do daily, weekly, and monthly jobs in Debian. Is there a simpe way to have a script execute at shorter time intervals. I'd you can specify the values separated by commas, example for minute

Re: Executing a Script every hour

2003-09-30 Thread Alex Malinovich
On Tue, 2003-09-30 at 15:11, Christof Hurschler wrote: > Hi, > > I've scanned the cron man pages, but it seems that cron is only set up to do > daily, weekly, and monthly jobs in Debian. > > Is there a simpe way to have a script execute at shorter time intervals. I'd > like to run the swendelet

Executing a Script every hour

2003-09-30 Thread Christof Hurschler
Hi, I've scanned the cron man pages, but it seems that cron is only set up to do daily, weekly, and monthly jobs in Debian. 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 ov