[Gambas-user] Information: Set a variable from Shell command
Mike Keehan
mike_keehan at ...679...
Wed Dec 22 15:37:09 CET 2004
Sniper wrote:
> I have work with the gambas version 0.95 where I can't set a variable
> from shell command, ex: test = Shell "who".
> Now I make a redirect to file and I read this file. In the new version I
> can set a variable from a shell command or this fuction is not implemed
> in this version? Thank's
>
This works:-
Dim Svar as String
SHELL "who > /tmp/who.out" WAIT
Svar = File.Load("/tmp.out")
OK?
Mike.
More information about the User
mailing list