RAS problem in script

"Tom Geldner" <[email protected]>
Newsgroups gmane.network.hamster
Organization XOR, LLC
Message-ID <02cf01c208fe$a8d9da00$0100a8c0@bosco>
All,

For some reason, no matter what, Hamster will close the RAS connection when
it restarts the do loop. Am I missing something or is there a bug in the
RasIsConnected statement? The idea is for H to NOT dial a connection if
there's one already going. I only use this particular connection for the
Internet.

====================
#!hs2

do

if( !RasIsConnected )
  $try = 1
  while( RasDial("ZNET - Mira Mesa") != 0 )
    if( $try >= 3 )
       error( "Dialing failed!" )
    endif
    inc( $try )
    sleep( 10000 )
  endwhile
endif

if (RasIsConnected)
  HamWaitIdle
  HamNewsPost
  HamWaitIdle
  HamNewsPull
endif

sleep( 600000 )

loop
====================
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.