[lug] stderr woes

Michael Hirsch mdhirsch at gmail.com
Thu Feb 24 07:42:34 MST 2005


On Wed, 23 Feb 2005 22:22:34 -0700, Daniel Webb <lists at danielwebb.us> wrote:
> I'm getting the following output sometimes from a script:
> 
> /usr/local/bin/ssh-reverse-tunnel: line 63: /dev/stderr: Permission denied
> /usr/local/bin/ssh-reverse-tunnel: line 63: /dev/stderr: Permission denied
> /usr/local/bin/ssh-reverse-tunnel: line 63: /dev/stderr: Permission denied
> /usr/local/bin/ssh-reverse-tunnel: line 63: /dev/stderr: Permission denied
> 
> Line 63 in the script is (from a function):
> 
> echo "$THIS: $*" >/dev/stderr
> 
> If I try:
> 
> echo "test" >/dev/stderr
> 
> from the command line as the same user that runs the script, it just
> prints "test" (to stderr, I assume).
> 
> Is there some obvious thing I'm overlooking here?

Strange.  I can't reproduce that with a silly little script.  Can you
create a smal script that reproduces the problem and post it?

Michael



More information about the LUG mailing list