[EMAIL PROTECTED] said:
> Exactly, errors, i.e. stderr, goes there, not stdout, which print output
> to.
They're both the same file:
$ pidof ion3
15820
$ ls -la /proc/15820/fd/
total 4
dr-x------ 2 lunz users 0 2005-05-01 16:11 .
dr-xr-xr-x 3 lunz users 0 2005-05-01 16:11 ..
lrwx------ 1 lunz users 64 2005-05-01 16:11 0 -> /dev/tty1
l-wx------ 1 lunz users 64 2005-05-01 16:11 1 ->
/home/lunz/.xsession-errors
l-wx------ 1 lunz users 64 2005-05-01 16:11 2 ->
/home/lunz/.xsession-errors
lrwx------ 1 lunz users 64 2005-05-01 16:11 4 -> socket:[62784020]
> Use io.stderr:write(...) to write to stderr, or connect print etc.
> there with io.output(stderr).
Thanks, that works fine.
Oddly enough, even though both io.stdout and io.stderr work (which can
be verified with their :write() methods), print doesn't work. The only
thing the Lua reference manual has to say about it is that print goes to
stdout. That's obviously not the whole story.
Jason