ITEM: BT0649L
Invoking piohpnpf -x hostname from application program
ENV:
AIX 3.2.5
7015-5xx
DESC:
We pipe print jobs into /usr/lib/lpd/pio/etc/piohpnpf -x hostname
from our application to send print jobs to our network printers so
there are no queues. This works fine. We how have a few HP EX+3
print servers. How can we do something similar?
ACT:
Setup something like this:
\#!/bin/ksh
SERVERHOST = $1
REMOTEQ = $2
cat > /tmp/junk_$$
rembak -S $SERVERHOST -P $REMOTEQ /tmp/junk_$$
/usr/bin/rm /tmp/junk_$$
The script is necessary because rembak doesn't read from stdin, it
must be given a filename. If you piped something into this script,
the stdin would be redirected to a /tmp file and then rembak is
invoked on the temp file which would then be removed. This script
could be expanded on by checking the exit code of rembak, etc.
Support Line: Invoking piohpnpf -x hostname from application program ITEM: BT0649L
Dated: January 1997 Category: N/A
This HTML file was generated 99/06/24~13:30:20
Comments or suggestions?
Contact us