HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Direct print to a port on a server
Operating System - HP-UX
1827332
Members
6200
Online
109963
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
09-09-2005 05:03 AM
09-09-2005 05:03 AM
I need to send printed output to a server rather than a print queue and a particular port # on that server (10001). Anyone know the command?
I've tried lp -d combinations but nothing seems to work. The -p command on addqueue isn't really the same port type
Here is the request I received from the vendor and of course they only know how to do this on windows. Don't you love vendors?
"What I need is a printer setup for this that points to the IP Address of the fax server and a port (i.e. 10001)."
I've tried lp -d combinations but nothing seems to work. The -p command on addqueue isn't really the same port type
Here is the request I received from the vendor and of course they only know how to do this on windows. Don't you love vendors?
"What I need is a printer setup for this that points to the IP Address of the fax server and a port (i.e. 10001)."
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2005 05:19 AM
09-09-2005 05:19 AM
Solution
I would say the first thing to do is a command which bypasses all of lp.
cat myfile | /opt/hpnpl/bin/hpnpf -p 10001 -x remote_host (or IP address). If that works then add a network printer and then modify the hpnpf call within the interface to match your working combination.
Another tool which will do just what you want (and can be substitiuted for hpnpf in the lp interface file) is netcat.
http://gatekeep.cs.utah.edu/hppd/hpux/Networking/Admin/netcat-1.1.0/
It would help if your vendor can at least tell you if they are using tcp or udp protocols. (Probably tcp but I didn't write this). It would also be trivially easy to do this in Perl using the IO::Socket module.
cat myfile | /opt/hpnpl/bin/hpnpf -p 10001 -x remote_host (or IP address). If that works then add a network printer and then modify the hpnpf call within the interface to match your working combination.
Another tool which will do just what you want (and can be substitiuted for hpnpf in the lp interface file) is netcat.
http://gatekeep.cs.utah.edu/hppd/hpux/Networking/Admin/netcat-1.1.0/
It would help if your vendor can at least tell you if they are using tcp or udp protocols. (Probably tcp but I didn't write this). It would also be trivially easy to do this in Perl using the IO::Socket module.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2005 07:44 AM
09-09-2005 07:44 AM
Re: Direct print to a port on a server
Thanks for the reply. I don't know if your answer will work because no one is around to test so I'll just assign points under the assumption that you're usually correct.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP