[Gambas-user] shell script output controls gambas

Ganesh Kumar bugcy013 at ...626...
Tue Apr 5 12:12:08 CEST 2011


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.




More information about the User mailing list