Re: open commnand in linux exu ATTENTION ALL LINUX USERS
- Posted by Robert Craig <rds at RapidEuphoria.com> Nov 30, 2005
- 519 views
Bernie Ryan wrote: > > Bernie Ryan wrote: > > > > When I use: > > }}} <eucode> > > fn = open("CON","a") > > </eucode> {{{ > > > > It creates a file called CON and does not get the file number > > of the console like the document states. The documentation should mention that those "magic" file names like "CON", "AUX" etc. apply only to DOS/Windows, not Linux/FreeBSD. Those names are hard-coded into DOS/Windows. It's not something Euphoria is doing. I'll add that to the docs. Thanks. > ... > I found that you can do the following in linux > }}} <eucode> > -- to get a file descriptor of console > -- Rob maybe should do this internally to make "CON" work. > -- > fn = open("/dev/console","a" > </eucode> {{{ Thanks, but I'm not going to do any behind-the-scenes hocus pocus on Linux/FreeBSD file names. All file names used in open() are passed through unchanged to the underlying operating system. I think that's how it should be. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com