Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sco-unix 5.0.5 OSR-capture printing in afile.

Status
Not open for further replies.

acreddy75

MIS
Dec 23, 2002
2
IN
Hellow gurus.
OS is sco-unix 5.0.5.
i need to capture the whatever printing in to file, on sco-server. is it possible ? pl help...
 
You can play with the tee command in the printer interface script located in /var/spool/lp/admins/lp/interfaces/

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
I'm not around a box to look, but can't you call the print job with a -s parameter that saves the output in the spooler?

Ed Fair
Give the wrong symptoms, get the wrong solutions.
 
edfair, I think your meaning was the -c option of the lp command. Anyway I'm afraid the copy is deleted when the print job is done.

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
If just a once or twice ordeal, then you can do the following (must have lpadmin rights:

Disable the printer. If the print spooler is named 'hplaser', for example, you would type 'disable hplaser'. Print jobs are still submitted to the print spooler, but held until the printing is enabled.

These jobs are held in '/usr/spool/lp/temp/**print_job_id**-1'

Note there are '*-0' and '*-1' files, the actual file to print will be the file(s) ending with '-1'.

copy these files to someplces nice, then 'enable hplaser' and the jobs will print and you have a copy.

I use this method when I need to check actual data to a printer, but not consistantly.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top