"Franki" <[EMAIL PROTECTED]> wrote:
> ...
> I am thinking of writing a shell script... and I need it to do the
> following..
>
> ...
> What I need to do this,, is some way of detecting if a connection is
> active..
I think that 'ifconfig ppp0' should return with an IP address field
of something reasonable if ppp is up.
> (and I don't mean by pinging or something like that.)
> what can I test internally to see if a ppp connection is open?
>
> Also, how do I assign time to a variable so that I can compare the times..
> (or is there an easier way to do this?)
In bash,
variable=`date` # use options if you want it to make more sense later.
in PERL:
my $now = system("date");
or
my $now = scalar localtime;
(TMTOWTDI ;-)
>
> lastly, has anyone heard of a tool like this?
No, most tools I've heard of don't care how often you try to
call back - they just want to get connected, now, doggoneit! ;-)
(Again, courtesy bcc sent direct - the list should NOT see but one!)
rc
Rusty E. Carruth Email: [EMAIL PROTECTED] or [EMAIL PROTECTED]
Voice: (480) 345-3621 SnailMail: Schlumberger ATE ___
FAX: (480) 345-8793 7855 S. River Parkway, Suite 116 \e/
Ham: N7IKQ @ 146.82+,pl 162.2 Tempe, AZ 85284-1825 V
ICBM: 33 20' 44"N 111 53' 47"W http://tuxedo.org/~esr/ecsl/index.html