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. ------------------------------------------------------------------------------ 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