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 didn't know about when I 
started. 

Chris

On Friday 03 October 2003 04:22, Bijan Soleymani wrote:
 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
based on different requirements.  The two are not mutually exclusive.
  
   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?

 I don't know what he meant but the way I understand it, cron runs stuff
 at a specified time. For example you could set up logrotation to happen
 on tuesdays at 11:05 PM. Except what happens if the user turns off the
 machine at 10 oclock each night. Then the logs never get rotated. With
 anacron you say the logrotation should occur every X hours/days/etc the
 computer is on.

 P.S. I'm really not sure about this, I've never used anachron directly,
 though I have used cron a good deal.

 Bijan

-- 
Dr.-Ing. Christof Hurschler
Bodenstedtstr. 13
D-30173 Hannover
+49-0172-5946909


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



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.
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?
  cron runs program at specified times. if machine is down at the 
specified time the job does not run.

  anacron runs jobs with specified frequency, e.g. daily. So if the 
machine is up at least sometime the job is run...

	erik

--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



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.
 
 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?

-- 
Pigeon

Be kind to pigeons
Get my GPG key here: http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x21C61F7F


pgp0.pgp
Description: PGP signature


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
   based on different requirements.  The two are not mutually exclusive.
  
  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?

I don't know what he meant but the way I understand it, cron runs stuff
at a specified time. For example you could set up logrotation to happen
on tuesdays at 11:05 PM. Except what happens if the user turns off the
machine at 10 oclock each night. Then the logs never get rotated. With
anacron you say the logrotation should occur every X hours/days/etc the
computer is on.

P.S. I'm really not sure about this, I've never used anachron directly,
though I have used cron a good deal.

Bijan
-- 
Bijan Soleymani [EMAIL PROTECTED]
http://www.crasseux.com


signature.asc
Description: Digital signature


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 cron jobs that were supposed to run when the machine
comes back up if the machine was down at the time.

- -- 
 .''`. Paul Johnson [EMAIL PROTECTED]
: :'  :
`. `'` proud Debian admin and user
  `-  Debian - when you have better things to do than fix a system
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/fO88UzgNqloQMwcRAjXsAKDVkYk/L5p/gVkFqFFVqYM6lxxb5ACggesM
1XAUWQu7etK6iH7ty2ddB1M=
=7wqC
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Executing a Script every hour

2003-10-01 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]:
  $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 swendelete.pl and
  don't have an active connection (I'm usind demand in ppp).
 
  Any suggestions?
 
 Although I have no experience with the language, you may want to try
 approaching the problem from the other end.  If you can't get the
 'Net::POP3' module to wait until the ppp daemon finishes connecting,
 have the ppp daemon run your script as soon as it finishes connecting.
 
 Then, instead of running your script every hour, have the daemon connect
 every hour, then disconnect after a suitable period.
 
 Just a thought...
 
 Regards,
 -- 
 dave [ please don't CC me ]
 
 
 -- 
 To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
 with a subject of unsubscribe. Trouble? Contact
 [EMAIL PROTECTED]
 

-- 
Dr.-Ing. C. Hurschler
[EMAIL PROTECTED]

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! +++


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Executing a Script every hour

2003-10-01 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

- -- 
 .''`. Paul Johnson [EMAIL PROTECTED]
: :'  :
`. `'` proud Debian admin and user
  `-  Debian - when you have better things to do than fix a system
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/enLHUzgNqloQMwcRAlvLAKCPHaOpFCj8IjjJ7gxtjaVcdeILJwCgln2d
7D6ZKONALQmCZ5nIrnVh6eA=
=tipS
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Executing a Script every hour

2003-10-01 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 connections I'm
probably newer than you are, as I've never used them in Linux.  However,
the theory is sound. ;]

 Maybe somone can tell me how to tell pppd to connect, i.e. without for
 instance running ping?

How do you connect currently?  Does your system connect whenever you try
to access a resource that's on the internet?

Regards,
-- 
dave [ please don't CC me ]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



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 don't have a flat rate service so I don't want to stay connected all the
time.

Chris

 * 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 connections I'm
 probably newer than you are, as I've never used them in Linux.  However,
 the theory is sound. ;]
 
  Maybe somone can tell me how to tell pppd to connect, i.e. without for
  instance running ping?
 
 How do you connect currently?  Does your system connect whenever you try
 to access a resource that's on the internet?
 
 Regards,
 -- 
 dave [ please don't CC me ]
 
 
 -- 
 To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
 with a subject of unsubscribe. Trouble? Contact
 [EMAIL PROTECTED]
 

-- 
Dr.-Ing. C. Hurschler
[EMAIL PROTECTED]

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! +++


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



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 isn't exactly instantaneous, but much faster
 than my old modem!

That's no kidding.  I haven't used dial-up for years, and was very glad
to get away from that!  BTW - have you checked the man page/help files
for pppd for examples on how to manually have pppd call out?  The docs
should be located in '/usr/share/doc/ppp'.

Regards,
-- 
dave [ please don't CC me ]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



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?

anacron.

cron and anacron solve similar problems but with a different approach
based on different requirements.  The two are not mutually exclusive.

-D

-- 
Failure is not an option.  It is bundled with the software.
 
http://dman13.dyndns.org/~dman/


pgp0.pgp
Description: PGP signature


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 stuff that has to be run even when the machine's
down.  IIRC, anacron depends on cron.

- -- 
 .''`. Paul Johnson [EMAIL PROTECTED]
: :'  :
`. `'` proud Debian admin and user
  `-  Debian - when you have better things to do than fix a system
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/e5OiUzgNqloQMwcRAoP+AKDB35h1C4ft4IDCIfAXDQ+B3esVZwCgumtV
eqb+KGvIwWcVMQsmKIxmMaQ=
=C2Yw
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



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 overfiling.

Thanks,

Chris
-- 
Dr.-Ing. Christof Hurschler
Bodenstedtstr. 13
D-30173 Hannover
+49-0172-5946909


-- 
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 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 swendeleter.pl script automatically every so often to keep my 
 mailbox from overfiling.

Actually, cron will let you start a job by minute.

Take a look at:

man crontab
man 5 crontab

-- 
Alex Malinovich
Support Free Software, delete your Windows partition TODAY!
Encrypted mail preferred. You can get my public key from any of the
pgp.net keyservers. Key ID: A6D24837


signature.asc
Description: This is a digitally signed message part


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 minutes:

00,15,30,45 * ...

  would be executed every 15 minutes

  there are other ways to specify when it should be run, read man 5 
crontab carefully (not man crontab), 5 is section traditionally used for 
file formats

	erik

--
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 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 automatically
 every so often to keep my mailbox from overfiling.

Use crontab(1), like on every other Unix.  :-)  If you need some other
frequency for a package or system script, you could drop a crontab
fragment in /etc/cron.d; see crontab(5) for the format, and pretend
these are parts of the system crontab file.

-- 
David Maze [EMAIL PROTECTED]  http://people.debian.org/~dmaze/
Theoretical politics is interesting.  Politicking should be illegal.
-- Abra Mitchell


-- 
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 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 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
hour0-23
day of month1-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 [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



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 
 like to run the swendeleter.pl script automatically every so often to keep my 
 mailbox from overfiling.
 
 Thanks,
 
 Chris

The keyword for an hourly job is @hourly, or you could use I believe
0 0 * * *

--
monique


-- 
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 the swendeleter.pl script
 automatically every so often to keep my mailbox from overfiling.

Use either the system crontab (/etc/crontab) or set up your own
personal one.

man crontab

Kenward
-- 
In a completely rational society, the best of us would aspire to be 
_teachers_ and the rest of us would have to settle for something less, 
because passing civilization along from one generation to the next 
ought to be the highest honor and the highest responsibility anyone 
could have. - Lee Iacocca


-- 
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 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 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 script automatically every so often to keep my
 mailbox from overfiling.

Hi,
Pretty easy to do. Become to use you want the script to run as (root or
yourself)

crontab -e

then add the line

0   *   *   *   * /path/to/swendeleter.pl

That should do it

rgds

rus
-- 
w: http://www.jvps.com  | Linux + FreeBSD Servers from $15/mo
e: [EMAIL PROTECTED]| Dedicated Servers from $119/mo
t: +44 7919 373537  | email: [EMAIL PROTECTED]
t: 1-888-327-6330   | email: [EMAIL PROTECTED]



-- 
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 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 est.


pgp0.pgp
Description: PGP signature


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 = 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 [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 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
 hour0-23
 day of month1-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 [EMAIL PROTECTED] 
 with a subject of unsubscribe. Trouble? Contact
 [EMAIL PROTECTED]
 

-- 
Dr.-Ing. C. Hurschler
[EMAIL PROTECTED]

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! +++


-- 
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 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 swendelete.pl and
 don't have an active connection (I'm usind demand in ppp).

 Any suggestions?

Although I have no experience with the language, you may want to try
approaching the problem from the other end.  If you can't get the
'Net::POP3' module to wait until the ppp daemon finishes connecting,
have the ppp daemon run your script as soon as it finishes connecting.

Then, instead of running your script every hour, have the daemon connect
every hour, then disconnect after a suitable period.

Just a thought...

Regards,
-- 
dave [ please don't CC me ]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]