![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| add printer | sak900354 | UNIX for Dummies Questions & Answers | 1 | 06-20-2006 06:10 AM |
| How do you send printer codes to an IP printer | jeffbugfree | IP Networking | 2 | 10-20-2005 06:15 PM |
| printer | ramesh | Linux | 1 | 08-24-2004 08:04 AM |
| know I do for to printer in printer deskjet 80colun | edvaldo | Linux | 1 | 07-13-2004 04:20 AM |
| printer | victbla | Security | 1 | 03-23-2002 04:58 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Printer
I config my sun solaris 8 as a print server running lp print.
It printing fine but would not print multiple copies I use the -n option like this: lp -d printer_name -n3 file it just print one copy instead of three copries the printers are hp printers. Can you help? please Thanks |
|
||||
|
In my model script in /var/spool/lp/model they are two files
netstandard and standard I have look through both script but I don't honestly no what am looking for may you could please help on this. I tried using option -on this did not work either. Any more suggestions will be appriaciated Thanks |
|
|||||
|
Model scripts are usually 'scripts', just like their name says. If you understand shell scripting or programming of any kind you should be able to make out what it is doing.
When you run 'lp' it contacts the lpscheduler (lpsched). lp passes the file and the options you specified, like the printer name and number of copies, to the lpsched. lpsched takes this information and does several things with it. This is where things get confusing. For some reason it is very hard to find a comprehensive document on how the lp subsystem works. This site is about the best I have ever found: http://www.unix.kg/eng/solaris/syste.../page007.shtml lpsched takes the options passed by lp and creates 2 files, one in the var/spool/lp/tmp and the other is in /var/spool/lp/requests. lpsched just uses the on in the tmp direcotry for logging and info purposes as far as I am aware. It uses the one in requests to send info to the model script I am seeing the same thing as you. I don't remember seeing this in the past but it is not working on my home box (Solaris 9). Looking at the model script you will find "copies=$4". It is getting $4 as the 4th entry in the /var/spool/lp/requests file. If you disable your queue and look at this file, you will see it will always be '1' no matter what you pass for -n. I tried several other options but they didn't work either. The interesting thing is the file in tmp has the correct number in it (the C value). I searched sunsolve and couldn't find any articles about this. Hopefully this long discussion will trigger someone's memory. The only work around I can suggest for now is to change your model script to look at the tmp directory to find the copy info. This is up to you if you feel confident you can do it and feel it would work fine in your environment. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|