1834290 Members
2541 Online
110066 Solutions
New Discussion

pg: cannot reopen stdout

 
SOLVED
Go to solution
Jim Corbett
Occasional Advisor

pg: cannot reopen stdout

Running HP-UX 10.20 pg command returns "pg: cannot reopen stdout" for a non-root user; works for root. non-root user can run the cat and more command with no errors.
3 REPLIES 3
Robin Wakefield
Honored Contributor
Solution

Re: pg: cannot reopen stdout

Hi Jim,

Has your /dev/tty disappeared? If so, try recreating it. Or it may have the wrong permissions (666).

rgds, Robin
Steve Steel
Honored Contributor

Re: pg: cannot reopen stdout

Hi

pg command or /dev/tty has bad protection


555 /usr/bin/pg 666 /dev/tty

is needed


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Jim Corbett
Occasional Advisor

Re: pg: cannot reopen stdout

THANKS, /dev/tty was the answer.