- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Output from interface script
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
02-25-2003 12:31 PM
02-25-2003 12:31 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2003 12:54 PM
02-25-2003 12:54 PM
Re: Output from interface script
Which device file is used for this printer, I suppose the output is going to the devicefile.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2003 01:04 PM
02-25-2003 01:04 PM
Re: Output from interface script
It is not going to any device file. Here is the sequence of events from the app:
- user requests a report email to himself
- the app issues an "lp" with the destination of "Mail" and the "printfile" is the report data.
- the report gets emailed to the users exchange account
I took a look at the "Mail" interface script, and it taking the options passed to it (by lp I imagine) and using the options (ie. userid) to email the report (instead of printing it). It is creates a temporary mail file, with "To:", "From:" and "Subject:" headers that it gets by parsing the printfile. This used to work and I don't see why it shouldn't. Thats why I'm hoping I can get verbose shell info (ie., set -xv) to figure out the problem.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2003 01:40 PM
02-25-2003 01:40 PM
Re: Output from interface script
Perhaps I misunderstand you. Is there a printer configured in the printer spooler for this job (and the processing is done in the printer interface script). If there is a such printer it always must have a devic file. You can use SAM to view the devicefiles for your printers.
I have done some special printer interface scripts myself, similar to yours. In my case I used /dev/null as device file. Nothing was sent to this file, the script done some other processing with the data but there has to be a device file for the printer. And, as I think, the debug information is perhaps going to the device file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2003 06:28 AM
02-26-2003 06:28 AM
Re: Output from interface script
Checked in SAM, under Printers
and Plotters, and didn't see any line item for a device file. However, that does make sense. How can I change that file ?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2003 07:30 AM
02-26-2003 07:30 AM
Re: Output from interface script
could it be the case that the script is ok but sendmail doesn't send out the email ?
Check with
mailq
if there are emails in the mail queue that were not delivered.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2003 08:05 AM
02-26-2003 08:05 AM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2003 09:27 AM
02-26-2003 09:27 AM
Re: Output from interface script
Thats what I was looking for.
Still curious as to where exactly "lp" sends stderr (/dev/null ???), and if I can change that, in lieu of modifying the interface script. In any event I see that the "parsing" of the report is not happening as it used to, due to a change in the format (application problem of course).
Thanks to all. I will assign points accordingly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2003 05:41 AM
02-27-2003 05:41 AM
Re: Output from interface script
> (/dev/null ???), and if I can change that, in lieu of
> modifying the interface script.
It is not lp(1), but lpsched(1M) which redirects stderr (and stdout). It redirects both to the device file which was used when creating the printer ("-v" option of lpadmin(1M)), i.e. possibly/probably /dev/null in your case.
For details see the "Models" section in the lpadmin(1M) manual page