This is my script

@echo off

rem This is a wifi ping tester to see if %HOST% hostname is avail.

rem 

set HOST=wpkg-srv

 

ping -n 5 %HOST% > nul:

if %errorlevel% == 0 goto alive

 

ping -n 15 %HOST% > nul:

if %errorlevel% == 0 goto alive

 

ping -n 15 %HOST% > nul:

if %errorlevel% == 0 goto alive

 

ping -n 15 %HOST% > nul:

if %errorlevel% == 0 goto alive

 

rem 

rem Hmmm seems like %HOST% is unreachable as we now have tried for 50
seconds!

rem exit with error

 

@echo %HOST% is not alive!

EXIT /B 1

 

:alive

rem we have contact - exit with success

EXIT /B 0

 

> Also, what would you like to happen if the wifi connection is not alive
when wpkg starts?  Do you want it to wait longer and try again, or > would
you rather let the user log in and then try again after a few
seconds/minutes?



If possible I’d prefer to delay logon until wpkg is completed and have a
message/progress bar display until then…

 

/Michael



 

 

Fra: [email protected]
[mailto:[email protected]] På vegne af Troy Hamilton
Sendt: 16. december 2008 17:32
Til: [email protected]
Emne: Re: [wpkg-users] Feature request

 

On Mon, Dec 15, 2008 at 11:52 PM, Michael Ugilt <[email protected]> wrote:

Been struggling to get WPKG to work smoothly with wifi'ed laptops.

The real issue is that the wifi connection takes some 10-14 seconds to come
alive so a 10 second ping is working from time to time but not reliable.

I have not been able to get the "offline custom script" method to work at
all – running my script offline and debugging is doing fine – but not when
called from within wpkg.

I think what I really miss is a retry parameter for the ping test ie. 3
times – or simple raise the build in 10 second max limitation

Any thoughts?

What does your offline custom script look like right now?

Also, what would you like to happen if the wifi connection is not alive when
wpkg starts?  Do you want it to wait longer and try again, or would you
rather let the user log in and then try again after a few seconds/minutes?

--Troy

-------------------------------------------------------------------------
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
_______________________________________________
wpkg-users mailing list
[email protected]
http://lists.wpkg.org/mailman/listinfo/wpkg-users

Reply via email to