[Gambas-user] output to save

Benoit Minisini gambas at ...1...
Wed Sep 8 23:15:34 CEST 2004


On Tuesday 07 September 2004 21:06, scatman wrote:
> Hello,
>
> sorry i'am new on Gambas, but its realy great.
>
> ... Problem was, how can i detect the Size of a Medium...
>
>     answer for me .-)
>
>     SHELL "df /dev/hdb | tail -1 | awk '{print $2} ' "
>
> My questions is now. How can i save this Output in a Variable and how can i
> tell the Shell a Variable for /dev/hdb?
>
>
>
> thx
> --
>
> scatman
>

DIM sTemp AS String
DIM sOutput AS String

sTemp = Temp$
SHELL "df /dev/hdb | tail -1 | awk '{print $2} ' > " & sTemp WAIT
sOutput = File.Load(sTemp)
KILL sTemp

Regards,

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the User mailing list