- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Question about set a printer on a HP-UX server
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
Forums
Discussions
Discussions
Discussions
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
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
03-03-2008 01:01 PM
03-03-2008 01:01 PM
I got a requirement today. Customer wanna setup a special printer queue on a rp5470 box (OS: HP-UX 11i v1). They require this print could "print" file to a specify PC's specify folder (c:\printer1).
Is it possible? If so, how to set it up.
I know how to setup a dummy printer on HP-UX system and let the print out goes to /dev/null.
lpadmin -pprinter_name -mdumb -v/dev/null.
Any answers will be very appreciate.
-G
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2008 01:03 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2008 01:06 PM
03-03-2008 01:06 PM
Re: Question about set a printer on a HP-UX server
Thanks for your fast reply (whin 10 sec).
Yes, It's my customer's requirment:
Please setup a printer on A (rp5470), let it prints a file to PC workstation B's c:\printer1.
Does it make sense?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2008 01:16 PM
03-03-2008 01:16 PM
Re: Question about set a printer on a HP-UX server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2008 01:28 PM
03-03-2008 01:28 PM
Re: Question about set a printer on a HP-UX server
Idea #1: Install remote print spooler software on PC. Configure printer to print to file. Then set-up HPUX to print to this remote printer.
Idea#2: Set-up HPUX to print to file ( gonna have issues with format and printer codes CR/LF ) Share that filesytem to the PC via SAMBA/CIFS or the reverse and share the PCs disk with HPUX.
Idea#3: Get real creative, set-up HPUX to print to file ( somehow fix all the format issues) then email file to PC
The setup of the HPUX printer to a file will have to be done by hacking the print driver file /etc/lp/interface/myprinter.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2008 01:43 PM
03-03-2008 01:43 PM
Re: Question about set a printer on a HP-UX server
Simple way to send print job to a file on HPUX.
lpadmin -pPRINT2FILE -mdumb -v/dev/null
accept PRINT2FILE
enable PRINT2FILE
edit /etc/lp/interface/PRINT2FILE
Somewhere near the top add:
exec > /path/to/printfile
Then start the spooler.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2008 01:52 PM
03-03-2008 01:52 PM
Re: Question about set a printer on a HP-UX server
Thanks for your suggestion. But, it doesn't match customer's requirment if through SAMBA or FTP.
But anyway, thanks a lot.
-G
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2008 02:06 PM
03-03-2008 02:06 PM
Re: Question about set a printer on a HP-UX server
Thanks for your good suggestons.
I'd like to try idea #2 and #3. I prefer #2 but if customer doesn't like SAMBA, if will try email way.
BTW, is it correct below. I wanna set a dummy printer queue, let the output file goes to the file /tmp/printer2file folder
# lpadmin -pPRINT2FILE -mdumb -v/tmp/printer2file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2008 08:00 AM
03-04-2008 08:00 AM
Re: Question about set a printer on a HP-UX server
lp wants to see a real device file. You might be able to set up some type of FIFO and then have a script read the info in as it is sent into the fifo but now I am stretching the ideas.
I would stick with the modification of the interface file. You could change the exec > /path/to/file to a more robust config.
(I did not test this)
ii=0
outfile=/mydir/fyfile
while [[ -f $outfile.$ii ]]
do
(( ii = ii + 1 ))
done
outfile=$outfile.$ii
exec > $outfile
...
(the rest of the interface file))
then every minute or so have a script watch the directory and email all files to user, then delete files when done ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2008 08:32 AM
03-04-2008 08:32 AM