- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- LP Command Script Writing Sequential Number on Spo...
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
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
08-25-2004 03:47 AM
08-25-2004 03:47 AM
LP Command Script Writing Sequential Number on Spool File
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2004 03:55 AM
08-25-2004 03:55 AM
Re: LP Command Script Writing Sequential Number on Spool File
cp sp?.spl /printer/spool
for i in /printer/spool/*
do
lp /printer/spool/$i
done
I'm sure that's more simplistic than you intended. Could you expand on your requirements?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2004 04:00 AM
08-25-2004 04:00 AM
Re: LP Command Script Writing Sequential Number on Spool File
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2004 04:07 AM
08-25-2004 04:07 AM
Re: LP Command Script Writing Sequential Number on Spool File
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2004 04:12 AM
08-25-2004 04:12 AM
Re: LP Command Script Writing Sequential Number on Spool File
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2004 04:15 AM
08-25-2004 04:15 AM
Re: LP Command Script Writing Sequential Number on Spool File
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2004 04:21 AM
08-25-2004 04:21 AM
Re: LP Command Script Writing Sequential Number on Spool File
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2004 04:29 AM
08-25-2004 04:29 AM
Re: LP Command Script Writing Sequential Number on Spool File
/usr/spool/lp/interface/model.orig/printer)
You can add code to redirect the output to a file here.
HTH
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2004 04:48 AM
08-25-2004 04:48 AM
Re: LP Command Script Writing Sequential Number on Spool File
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2004 05:08 AM
08-25-2004 05:08 AM
Re: LP Command Script Writing Sequential Number on Spool File
I incorrectly told you the wrong driver file, it is /usr/spool/lp/interface/printer.
You may want to brush up on your shell script programming.
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2004 06:58 AM
08-25-2004 06:58 AM
Re: LP Command Script Writing Sequential Number on Spool File
Once the script is working locally, you would add it to the spooler using lpadmin. The output printer device will be /dev/null.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2004 03:29 AM
08-26-2004 03:29 AM