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 wrote:
> Hi Gurus,
>
> I am new to Gambas. I have executed shell script,, the shell script
> output control
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
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