Stdout and Stderr
keith_hodges at yahoo.co.uk
Thu Jan 18 00:27:32 UTC 2007
Giovanni Corriga wrote:
> Il giorno mer, 17/01/2007 alle 22.41 +0000, Keith Hodges ha scritto:
>> just a quick question, are any of the VM's particularly the unixish
>> ones, wired to produce output on stdout or stderr. Are there primitives
>> for doing so without any plugins?
> If you need output only, you can try opening /dev/stdout and /dev/stderr
> as simple files.
> This should work on Linux; not sure if it'll work on other Unix systems.
Yes that worked!
stdout := FileDirectory new fileNamed: '/dev/stdout'
stdout nextPutAll: 'hello world'; cr.
Copy addresses and emails from any email account to Yahoo! Mail - quick, easy and free. http://uk.docs.yahoo.com/trueswitch2.html
More information about the Squeak-dev