permissions issue on print to a file

Fairlight fairlite at fairlite.com
Mon Dec 4 14:51:56 PST 2006


You'll never BELIEVE what Nancy Palmquist said here...:
> Dennis Malen wrote:
> > Nancy,
> > 
> > I assume fm is the name of the file. What is the rest after fm:
> > 
> > fm{" 2>&1"
> > 
> Dennis,
> 
> I am working on Unix and that redirects any screen I/O (I believe) to 
> another place.  I am so used to doing it, I forget if it is the screen 
> IO or error IO and where &1 is.

2>&1 means dup fd 2 over to fd 1, which in plain English means send traffic
meant for STDERR to wherever STDOUT is going.  So ">/dev/null" sends STDOUT
to /dev/null, and "2>&1" means send STDERR there as well; it's functionally
equivalent to using "2>/dev/null".

The only thing I've ever seen on STDERR from fP is a \007 bell character.
Everything else goes to STDOUT, so in Windows you should be able to use a
simple ">wherever" and omit "2>&1" entirely unless you're generating errors
in fP that will ring the bell.  I'm not even sure it's possible to redirect
STDERR under Windows.  I think I tried once when porting Lightmail, and it
was so non-doable that I duped the fd's internally and sent it all to
STDOUT internal so that it would all come out on one channel.

mark->


More information about the Filepro-list mailing list