- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- view pinter spool file
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
09-21-2006 06:43 PM
09-21-2006 06:43 PM
view pinter spool file
I am looking for a script that allows user to view ther own spoolfile in
/var/spool/lp/request/PRINTERNAME
by typing the printjob #
Thanks in advance.
Kevin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2006 07:23 PM
09-21-2006 07:23 PM
Re: view pinter spool file
If you have some idea about scripting, then you just go through with below link. If possible try to modify it as per your requirment.
http://www.adminscripteditor.com/scriptlibrary/view.asp?id=421
Regards,
Sudhakaran.K
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2006 03:39 AM
09-22-2006 03:39 AM
Re: view pinter spool file
Sorry i did not mension that my system is
HP-UNIX.
Regards,
Kevin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2006 01:52 PM
09-23-2006 01:52 PM
Re: view pinter spool file
You can modify the "view" portion at the bottom as needed. Note that a simple cat won't be appropriate if the file is 50,000 lines in length, or it may contain special binary sequences. If your users understand vi, you could actually start view (vi in read-only mode).
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2006 08:10 PM
09-27-2006 08:10 PM
Re: view pinter spool file
The script works good if user is root
because in the printer folder "epson"
the permission is 440 and owner by lp:lp
Is there away to allow user to read these files without add them to group "lp"
Regards,
Kevin
Press Enter to list the file..
cat: Cannot open /var/spool/lp/request/epson/dA5620usa_1: Permission denied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2006 12:56 PM
09-30-2006 12:56 PM
Re: view pinter spool file
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2006 01:13 PM
09-30-2006 01:13 PM
Re: view pinter spool file
chown lp:lp /etc/lp/lpcat
chmod 4755 /etc/lp/lpcat
The lpcat script spends a lot of time checking that this user is allowed to look at the specified print job, turns off traps, and invalidates the SHELL variable. Normally, SETUID scripts are a no-no but in this case, it only changes to lp and doesn't allow any exit by the user. Lots of comments in both scripts.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2006 05:15 AM
10-01-2006 05:15 AM
Re: view pinter spool file
Bill Hassell, sysadmin