- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to direct print job to a particular tray, ...
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
Discussions
Discussions
Forums
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
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-18-2008 01:06 PM
тАО02-18-2008 01:06 PM
Re: how to direct print job to a particular tray, from Unix, using existing printer "form"
well... i haven't been successful yet. almost everything you've written i've found correct, except about the interface file. it seems like whether i create a new queue with addqueue, or use the one i have (reg1atrn), i don't get a file with any "def" settings in it in /etc/lp/interface. i DO see files with those settings in /etc/lp/interface/model.orig/... also, the banner which prints when i print from unix is in there; i know 'cuz i added my initials to the "Output Summary" line, which is echo'd out in that script, and it printed on the banner page.
however, if i change the script in /etc/lp/interface/model.orig/reg1atrn, it doesn't seem to affect the destination of the printjob. i added the line:
outb="2", then tried it with outb="3".
assuming i'm fixing the right file (i'm partly right?, as this method definitely changes the banner that's printed), is there something i need to do to make the changes "take effect"?
if i'm NOT fixing the correct file, i don't know where to turn next; i've attached the /etc/lp/interface/reg1atrn file, since i couldn't attach both files - i guess i could attach it to another post...
did i miss sumthin? ;^O
dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-18-2008 01:11 PM
тАО02-18-2008 01:11 PM
Re: how to direct print job to a particular tray, from Unix, using existing printer "form"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-18-2008 03:11 PM
тАО02-18-2008 03:11 PM
Solutionhttp://www.hp.com/pond/modelscripts/index2.html
Once you download and install this model script, delete the current printer with:
deletequeue -h myprinter
and then add it back again with addqueue. If it does not pick the net_lj4100 script, use addqueue -l to list all the available printers. Look for the 4100 and note the ID number. Then add the printer using addqueue and add the -i option with the ID number. That will add the printer with the correct model script. Now your -o options for the trays will work. Always test WIHTHOUT your application (ie, lp -dmyprinter -osomething...). Once the trays work OK, then add the printer again as mentioned above and you'll see all the "def" options in the script.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2008 03:48 AM
тАО02-19-2008 03:48 AM
Re: how to direct print job to a particular tray, from Unix, using existing printer "form"
paper="def"
to
paper="a4"
or
paper="leter"
If you tel you printer that all the paparsze leter is tray 3 it wil than print from tray 3.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2008 06:04 AM
тАО02-19-2008 06:04 AM
Re: how to direct print job to a particular tray, from Unix, using existing printer "form"
JEEEEEEEEEEPERS!!! we're ONLY 20 years behind, no need to get grouchy!!!! ;^)
seriously, though, i thought that there might've been something weird going on when your otherwise accurate instructions and descriptions suddenly went awry! i'll check this out and get back to you as soon as i can, hopefully today. this is my priority today, so, i'll be working on it.
thanks, so much, Bill and everyone, for your suggestions.
dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2008 08:29 AM
тАО02-21-2008 08:29 AM
Re: how to direct print job to a particular tray, from Unix, using existing printer "form"
well... this has been a nightmarish learning experience!!!
what i discovered, eventually, is that there actually WAS programming code controlling the trays in the VAR software - an obscure insert to an even more obscure program, which executed this line:
PRINT RESET:CONDENSED:LOWER.TRAY
now, another insert controlled these variables, setting LOWER.TRAY as such:
019: ESC = CHAR(27)
020: RESET = ESC:'E'
021: DPI.600 = ESC:"&u600D"
022: LOWER.TRAY = ESC:'&l4H'
023: PAGE.LEN.88 = ESC:'&l88F'
024: ENV.FEEDER = ESC:'&l6H'
025: HP8000.TRAY1 = ESC:'&l4H'
026: HP8000.TRAY2 = ESC:'&l1H'
027: HP8000.TRAY3 = ESC:'&l5H'
028: HP8000.TRAY4 = ESC:'&l20H'
029: HP8000.ENV = ESC:'&l6H'
030: DUPLEX.OFF = ESC:'&l0S'
031: DUPLEX.ON = ESC:'&l1S'
032: DUPLEX.ON.LAND = ESC:'&l2S'
033: FORM.FEED = CHAR(12)
notice how someone programmed "LOWER.TRAY" and "HP8000.TRAY1" to the same escape sequence, which clearly was printing to tray 1 (or the "manual feed tray" as i call it to remove any doubt). this is why no matter what i did at the Unix level, the printer was getting those escape sequences in its data stream, and over-riding the Unix settings, and printing to tray 1.
so, i fixed that, and now the string says:
* LMC Mod
BEGIN CASE
CASE V.TRANSCRIPT.GROUPINGS.ID = "GA" OR V.TRANSCRIPT.GROUPINGS.ID = "UA"
PRINT RESET:CONDENSED:HP8000.TRAY2
CASE V.TRANSCRIPT.GROUPINGS.ID = "G" OR V.TRANSCRIPT.GROUPINGS.ID = "U"
PRINT RESET:CONDENSED:HP8000.TRAY3
CASE 1
PRINT RESET:CONDENSED:HP8000.TRAY1
END CASE
* PRINT RESET:CONDENSED:LOWER.TRAY: ;* this points to the manual feed tray, actually!!!!!
* JD End-Mod
so, basically, print unofficial transcripts to tray 2, official transcripts to tray 3 (with pre-printed paper), and all other jobs to tray 1 (will never happen in this pgm).
this all seems to work.
however (and there always is one!), now i have a different problem. i can't seem to control other print jobs to NOT pull from the preprinted forms in tray 3. i CAN set the printer paper types in the different trays - no problem - and i think that's the generic way to handle this. however, what i'm finding is that this printer (HP4100MFP) is being printed to with a net_lj3x interface file. i can't see it currently because i'm replying, but i think that's one of the things we've talked about in prior pieces of this thread. my problem is that when i did everything we talked about: created a new printer, adjusted it to force printing on tray 3; when i printed on it, it only printed part of the job, namely the first line... the rest of the 2 pages which printed were blank. i'm pretty sure that some kind of code or escape sequence is in this VAR software which is really confusing the net_hp4100 driver. so, i can't use it yet... and therefore, i can't use the more sophisticated (or at least, more modern) features like 'mtype="Preprinted"' until i figure it out. ;^( if i could use them, i could control it better. i'll keep trying to figure out why this driver doesn't want to work, yet.
i'll get there eventually... thanks for all of your support, you've been VERY helpful...
thanks,
dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2010 12:03 PM
тАО12-20-2010 12:03 PM
Re: how to direct print job to a particular tray, from Unix, using existing printer "form"
Bill has corrected this to use:
removequeue -q myprinter
- « Previous
-
- 1
- 2
- Next »