pg: cannot reopen stdout

pg: cannot reopen stdout

Post by Jean-Pierre Radl » Thu, 18 Jul 1996 04:00:00



Quote:Joe Chasan writes:
> /usr/bin/pg on my SCO OSE 5.0.0 system recently went wacko.  
> no changes that can be traced to it.

> One day it works, then the next day all non-root users get
> "pg: cannot reopen stdout"

> As root, it works.

> I tried reinstalling pg from an older backup, checked permissions, tried
> rebooting, no improvement.

> Any ideas?

Errors "Cannot open your control terminal" or "cannot reopen stdout."

KEYWORDS: passwd man pg /dev/tty cannot open your control terminal reopen
stdoutpipe ksh more

RELEASE: SCO XENIX System V Operating System
         SCO UNIX System V/386 Operating System
         SCO Open Desktop Operating System

PROBLEM: When running the commands below, I get following errors:

         Generic
                pg(C) & man(C)    - "pg: cannot reopen stdout"

         On SCO UNIX and Open Desktop
                passwd(ADM)       - "Cannot open your control terminal"

         On SCO XENIX
                passwd(ADM)       - Gives no error and does not prompt for
                                    the new password.

         Other commands may also fail with similar errors.

CAUSE:  For some unknown reason, the system is missing the file /dev/tty.
        This may have been caused by an improper system shutdown.

SOLUTION: Recreate the file /dev/tty.  To do this, log in as root and type:

             mknod /dev/tty c 3 0     # Character device 'c', major 3, minor 0
             chmod 666 /dev/tty       # Correct permissions
             chown bin /dev/tty       # Correct owner
             For SCO XENIX only
                chgrp bin /dev/tty       # Correct group
             For SCO UNIX and Open Desktop only
                chgrp terminal /dev/tty  # Correct group

          The fixperm command could also be used to recreate this special
          device file.  See fixperm(ADM) for more information.

NOTE:    If this problem occurs under KSH and the given solution does not
         resolve the problem, then make sure KSH is not corrupted and it
         is not transfered from another (non-SCO) system.  Under certain
         circumstances, rebuilding the kernel solves the problem.  As the
         last resort, you may remove and reinstall the KSH binary.

--

 
 
 

pg: cannot reopen stdout

Post by Joe Chasa » Thu, 18 Jul 1996 04:00:00


/usr/bin/pg on my SCO OSE 5.0.0 system recently went wacko.  
no changes that can be traced to it.

One day it works, then the next day all non-root users get
"pg: cannot reopen stdout"

As root, it works.

I tried reinstalling pg from an older backup, checked permissions, tried
rebooting, no improvement.

Any ideas?

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Joe Chasan-                     Magnatech Business Systems, Inc.

                                 Tel. (516) 579-0600 / Fax (516) 579-0661

 
 
 

1. pg: cannot reopen stdout

It was OK before. Somehow some day when I used the command pg (like ls
-l|pg) it compain "pg: cannot reopen stdout". But when I su to root, I
can use pg without any problem.

Can any body tell me what is wrong with the system?

2. How to redirect any URL to one particular CGI script ???

3. pg:cannot reopen stdout

4. FREE: Sun Solaris FAQ and Admin Guide

5. pg: cannot reopen stdout

6. power warning suppression

7. xf86

8. can not reopen stdout ("PG")

9. reopen stdin, stdout

10. Q: Reopening stdout

11. Closing stdout and stderr, reopening them to a file within a script.

12. close & reopen stdout