[Gambas-user] shell script output controls gambas

Ron ron at ...1740...
Tue Apr 5 13:25:34 CEST 2011


On 5-4-2011 12:12, Ganesh Kumar wrote:
> Hi Gurus,
>
> I am new to Gambas. I have executed shell script,, the shell script
> output control the decision.
>
> My script
> /////////////////////////////////////////////////////////////////////////////////////
> #! /biin/bash
> host google.com>/dev/null
> if [  $? -eq 0 ];
> then
>    echo "Internet connection is UP"
> else
>    echo "Internet connection is DOWN"
> fi
> //////////////////////////////////////////////////////////////////////////////////////
>
> When script output controls the decision controls the gambas form.
>
> How to write gambas code.
>
>
> Connection Up meas  --------->  Execute another script
>
> Connection Down means --------->  skip the current form
>
> Any one help me..
>
> Advance thanks..
> ---
>
> -Ganesh.
>
>

Maybe this helps you, it uses the ping command.
http://domotiga.nl/browser/trunk/DomotiGa/Ping.module

Regards,
Ron_2nd.




More information about the User mailing list