Trouble with /dev/tty vs. /dev/ttyX

1999-12-26 Thread Joe Reinhardt

Debian potato, Linux davinci 2.2.13 #1 Fri Dec 3 13:33:40 CST 1999
i586 unknown



I was trying to use gpg and got this error:

~ {138}% gpg --gen-key
gpg (GnuPG) 1.0.1; Copyright (C) 1999 Free Software Foundation, Inc.
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions. See the file COPYING for details.

gpg: cannot open /dev/tty: Permission denied



The error occurs from either an xterm or a virtual term.  It looks
like the program is trying to open /dev/tty rather than /dev/ttyX
(e.g., /dev/tty2) -- I don't know why?



-- 
Joseph M. Reinhardt  [EMAIL PROTECTED]
Department of Biomedical Engineering 1402 Seamans Center
University of Iowa   Iowa City, IA 52242
Phone: 319-335-5634  Fax: 319-335-5631


Re: Trouble with /dev/tty vs. /dev/ttyX

1999-12-26 Thread Scott Henry
 J == Joe Reinhardt [EMAIL PROTECTED] writes:

J I was trying to use gpg and got this error:

J ~ {138}% gpg --gen-key
J gpg (GnuPG) 1.0.1; Copyright (C) 1999 Free Software Foundation, Inc.
J This program comes with ABSOLUTELY NO WARRANTY.
J This is free software, and you are welcome to redistribute it
J under certain conditions. See the file COPYING for details.

J gpg: cannot open /dev/tty: Permission denied



J The error occurs from either an xterm or a virtual term.  It looks
J like the program is trying to open /dev/tty rather than /dev/ttyX
J (e.g., /dev/tty2) -- I don't know why?

/dev/tty is a psuedo-tty that is always the current tty (whether a
real one, a serial port, or a pty). You need read and write access to it.

% ls -l /dev/tty
crw-rw-rw-1 root root   5,   0 Dec 31  1969 /dev/tty
%

on my system. (the odd date is because I am running with devfs patch).

-- 
   More Important Drivel from:
 Scott Henry [EMAIL PROTECTED] /\/\/\  http://reality.sgi.com/scotth/


Re: Trouble with /dev/tty vs. /dev/ttyX

1999-12-26 Thread Joe Reinhardt

Thanks, this did the trick.

 SH == Scott Henry [EMAIL PROTECTED] writes:

SH /dev/tty is a psuedo-tty that is always the current tty
SH (whether a real one, a serial port, or a pty). You need read
SH and write access to it.

-- 
Joseph M. Reinhardt  [EMAIL PROTECTED]
Department of Biomedical Engineering 1402 Seamans Center
University of Iowa   Iowa City, IA 52242
Phone: 319-335-5634  Fax: 319-335-5631