[Gambas-user] shell script output controls gambas
Jussi Lahtinen
jussi.lahtinen at ...626...
Tue Apr 5 14:04:16 CEST 2011
Shell "YourScript.sh" To sStr
If InStr(sStr, "UP") Then
'Internet connection is up, do something...
Else
'Do something else.
Endif
Jussi
On Tue, Apr 5, 2011 at 13:12, Ganesh Kumar <bugcy013 at ...626...> 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.
>
>
> --
> Did I learn something today? If not, I wasted it.
>
>
> ------------------------------------------------------------------------------
> Xperia(TM) PLAY
> It's a major breakthrough. An authentic gaming
> smartphone on the nation's most reliable network.
> And it wants your games.
> http://p.sf.net/sfu/verizon-sfdev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
More information about the User
mailing list