With AIX, the lpstat -v output isn't in the expected format. To cure this, an lpstat that gives better output must be put in the $IOFFICE directory, and the PATH must be changed to find the $IOFFICE/lpstat before the system lpstat. All the necessary input is below.
-------------------file 1; cut here ------------------------
#!/bin/sh
/usr/bin/lpstat -v | awk '{
s += 1;
if (s > 2) {
printf($1);
if (index($1,":") == 0) print(":");
else print("");
}
};'
-------------------file 1; cut here ------------------------
-------------------file 2; cut here ------------------------
#!/bin/sh
/bin/lsallq | awk '{
printf($1)
if (index($1,":")==
0) print(":")
else print("")
printf($1)
if (index($1,":")==0)
print(":")
else print("")
}'
-------------------file 2; cut here ------------------------
In the $IOFFICE/bin directory, place the following two lines in each script that calls an Island product (for instance, the IslandWrite, IslandDraw, etc., files).
Note: these lines *must* go before the 'if [ $DISPLAY ] ; then' line, and the $IOFFICE variable must be set for this to work:
-------------------cut here ------------------------
PATH=$IOFFICE':'$PATH
export PATH
-------------------cut here ------------------------