[Gambas-user] Shell script output to label text

Ganesh Kumar bugcy013 at ...626...
Sat Apr 9 08:51:28 CEST 2011


Hi ,

I want shell script output, printed to the label text, Please help me..

my code,,

*******************************************************************

PUBLIC SUB Form_Open()
  DIM sStr AS String
  SHELL "sh /home/dhana/foo.sh" TO sStr
  IF InStr(sStr, " ") THEN
  Label1.text =" " & sStr
  ELSE
  Label1.text = "Error"
  ENDIF
END

*******************************************************************


I got error...please guide me..

Advance thanks

-Ganesh.

-- 
Did I learn something today? If not, I wasted it.




More information about the User mailing list