- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- lp spooler
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2002 07:51 AM
тАО08-16-2002 07:51 AM
lp spooler
lp -ddog1 fish.txt
What directory contains the file used to spool the "fish.txt" and set it up for printing? What directory contains the device "dog1"? How is "dog1" related to a real device or port?
I am attempting to trace the flow of the output from the source file, through the spooler system and then to the final output device because somewhere along the way it seems to be prepared for an output device that was not the one specified; i.e., the output contains unprintables, page ejects and overstrikes.
- Tags:
- unprintable chars
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2002 08:03 AM
тАО08-16-2002 08:03 AM
Re: lp spooler
/var/spool/lp directory.
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2002 08:06 AM
тАО08-16-2002 08:06 AM
Re: lp spooler
Now here's where things get a little tricky.
suppose that you did this:
lp -ddog1 fish.txt
sleep 300
rm fish.txt
You think 300 seconds is plenty of time for whatever it is that lp does and that it should be okay to rm fish.txt. The answer? maybe. The actual file 'fish.txt' is not copied by lp; it only knows the name of the file.
However,
lp -ddog1 -c fish.txt
rm fish.txt
or
cat fish.txt | lp -ddog1
rm fish.txt
will work perfectly because the data itself is copied or at least is open so that rm will remove the link but will not actually delete the file itself until all file descriptors which had fish.txt open are closed.
Man lp* for details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2002 08:08 AM
тАО08-16-2002 08:08 AM
Re: lp spooler
/etc/lp/interface should contain the files for each printer.
Most likely have the wrong driver setup for the printer. Check to see what is setup in /etc/lp/interface/ddog1.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2002 08:09 AM
тАО08-16-2002 08:09 AM
Re: lp spooler
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2002 08:33 AM
тАО08-16-2002 08:33 AM
Re: lp spooler
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-12-2002 10:08 AM
тАО09-12-2002 10:08 AM
Re: lp spooler
Just a reminder to give points out to those who answered your questions. It only takes a moment, and helps make the forums more useful to everyone.
Sean
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2002 04:42 PM
тАО09-14-2002 04:42 PM
Re: lp spooler
/etc/lp Directory of spooler configuration data
/var/sam/lp Backup directory of spooler configuration
/var/spool/lp Directory of LP spooling files and directories
/var/adm/lp Directory of spooler log files
Here's a script to check printer status:
#!/bin/sh
#
# check printer status
# Geoff Wild
if [ $# -lt 1 -o \( $# -gt 1 -a $# -lt 4 \) ]
then
echo "Usage:"
echo "lpst \"printer\""
echo "Example:"
echo "lpst W052"
exit 1
fi
echo " "
/usr/sbin/ping $1 -n 2
echo " "
lpstat -p$1 -v$1
echo " "
echo "Output Requests"
echo "-----------------------------------------------------------"
lpstat -o$1
echo " "
lpstat -r
echo " "
As far as your question:
lp -ddog1 fish.txt
fish.txt (if it exists) is submitted to the queue dog1. The file is copied to /var/spool/lp/receive.
/etc/lp/interface/dog1 is the model script used to print the file.
The actual device? /dev/null unless it is remote. But I assume the "actual" device. Well, device should have an ip address - if you are using HP printers with Jet Direct cards, then:
/opt/hpnpl/bin/hpnpadmin -v dog1
That should give you some details.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2002 07:05 PM
тАО09-14-2002 07:05 PM
Re: lp spooler
lp doesn't print anything. Instead, it checks that there is an accessible file to print and that the printer is accepting requests (disabled printers can still accept jobs). If that's true, lp will copy the file to /var/spool/lp/request/
Now, the first lpsched (parent is init) reads FIFO and schedules another lpsched to run the print job. This lpsched reads the control file, looks in the pstat file for details about the printer and then schedules a printer script (often called a driver but not really) which then sends the print job to the printer.
What makes all this complicated is the very wide variety of printer connections: serial, parallel, JetDirect, remote. So you can see a print job in the /var/spool/lp/request directory.
Now formatting errors are almost always due to a mismatch between the file type and the output method. HP-UX performs no re-formatting when sending data to a remote system. This is likely your problem. HP-UX will translate ASCII so there is a CR/LF pair but only for local printers. The postscript model will translate plain ASCII but will not translate Postscript into PCL or vice versa.
Perhaps a description of how the printer is connected will help. And a model number for the printer will help.
Bill Hassell, sysadmin