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 <bugcy...@gmail.com> 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@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
------------------------------------------------------------------------------
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to