[Gambas-user] commandline output redirect?
Ron
ron at ...1740...
Wed May 21 13:14:08 CEST 2008
Hi,
If you create a gambas command line application with a loop in it,
standard output cannot be redirected to a file.
This works:
-----------------------------------
PUBLIC SUB Main()
PRINT "test output"
END
./test.gambas >test.log
cat test.log
test output
This doesn't work:
------------------------------------
PUBLIC SUB Main()
PRINT "test output"
WHILE (1)
'do something
WAIT 1
WEND
END
./test.gambas >test.log
CTRL-C
test.log is empty
------------------------------------
Unbuffered printing to default output (with Write "test output") gives
the same result.
Gambas 2.6.0
Regards,
Ron.
More information about the User
mailing list