Re: Help with script
NY152 <[email protected]> Fri, 3 Jan 2003 16:16:25 +0100
| Newsgroups | gmane.network.hamster |
|---|---|
| Organization | the fox networking |
| Message-ID | <[email protected]> |
Hello Marc,
Friday, January 3, 2003, 3:57:55 PM, you wrote:
> Hello,
> This is my automate script.
#!hs2
#!load hamster.hsm
var( $try )
$try = 1
while( HamRasDial( "Sprint" ) != 0 )
if( $try > 2 )
error( "dialing Failed!" )
endif
inc( $try )
waitidle
endwhile
==============================
If you have a PSTN connection 30 seconds are not enough to connect.
You must a waitidle instead... the script will wait the end of the
dial command to continue...
In other case, in the while you computer is dialing the script will
conitnue, trying another connection, and another, then it try to
exchange mail/news and it will hang up... all before your connection
is up!
--
Best regards,
NY152 mailto:[email protected]
------------------------ Yahoo! Groups Sponsor ---------------------~-->
DVD Rentals with No Late Fees - Try Netflix for FREE!
http://us.click.yahoo.com/.ZSp6B/dlOFAA/46VHAA/W4wwlB/TM
---------------------------------------------------------------------~->
--
To post a message: [email protected]
To unsubscribe: [email protected]
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/