PROBLEM WITH PG COMMAND UNDER AIX
ITEM: RTA000028791
QUESTION:
Customer is running AIX 3.2.3 and is unable to get the pg command
to work. The message is "pg: cannot create temp file". There is
plenty of space in /tmp (8mb) and the permissions on the /tmp
directory are "rwxrwxrwt". They are able to use the more command
with no problem. Any ideas on what's going on here?
---------- ---------- ---------- --------- ---------- ----------
A: The pg command needs the /usr/tmp directory to create the temp file.
Furthermore, on 3.2 systems, /usr/tmp is a symbolic link to /var/tmp.
If you do not have that directory and link setup, the pg command will
not be able to create a temp file. Note that the link is not vital
for creating the temp file, but the temp file should be made in
/var/tmp, instead of /usr/tmp. The following commands will ensure
that you have the proper setup: (You must be root to do this)
mkdir /var/tmp # Creates the /var/tmp directory, where
# the temp file will reside (after the
# link.
ln -s /var/tmp /usr/tmp # Creates the symbolic link.
chmod 1777 /var/tmp # Changes the permissions of /var/tmp to
# be drwxrwxrwt
If you still get the errors after executing the above commands, then
you might not have enough space left in /var to create the temp file.
You can use the "df" command to determine if you need to extend the
/var filesystem.
Temp files are only necessary for when you pipe input into the pg
command. For example, the commands: "pg file" and "cat file | pg"
accomplish exactly the same thing, but the second one needs a temp
file whereas the first one does not.
Note that the "more" and "vi" commands do not use a temp file -- they
use a buffer in memory instead.
---------- ---------- ---------- --------- ---------- ----------
This item was created from library item Q617990 BZKZQ
Additional search words:
AIX ALTERNATE BZKZQ CMD COMMAND FEB93 INDEX IX OP PG PROBLEM RISCOSO
RISCSYSTEM SOFTWARE SYS
WWQA: ITEM: RTA000028791 ITEM: RTA000028791
Dated: 11/1996 Category: RISCOSO
This HTML file was generated 99/06/24~12:43:11
Comments or suggestions?
Contact us