Sponsored Content
Top Forums UNIX for Advanced & Expert Users Need to capture spooled print files Post 11299 by TioTony on Sunday 2nd of December 2001 01:36:27 AM
Old 12-02-2001
Your printer should have a model script located in /var/spool/lp/interface. You can modify this script to do pretty much what ever you want. I believe this will only work if you have a local definition for that printer, as opposed to a remote definition. It's worth a look at though. The name of the model script will be the same as the name of the print queue. A simple cp at the beginning of your script can accomplish what you need.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Directory where spooled file is stored

I am spooling a text file to printer under Sun Solaris m/c (solaris 7). I want to know which directory the spooled text file is stored before it goes to printer. B'se my main problem is to find the escape sequence from the text file to get landscape orientation. Now when ever I spool a file... (1 Reply)
Discussion started by: babulilly
1 Replies

2. Shell Programming and Scripting

capture all the today files

My folder (e.g. /opt/successlog/) creates many files thru cron jobs everyday. I would like to retreive all the today files in this folder into a log file. How to do this for KSH? Thanks! (3 Replies)
Discussion started by: Teh Tiack Ein
3 Replies

3. UNIX for Dummies Questions & Answers

spooled file getting distorted when sending through unix mail

Hi Folks, I'm spooling a file through sqlplus and sending using mailx but the output got distorted in MS-outlook. Thanks in advance (2 Replies)
Discussion started by: chgopi
2 Replies

4. Shell Programming and Scripting

How to capture input files from GETOPT ?

Hi... Could somebody help me how could i captured all input files from the command line ? As example: #./myscript -i input -o output file1.txt file2.txt... Then, based on the example how could i captured "file1.txt" and file2.txt ? could somebody help me ? Attached is some of my... (1 Reply)
Discussion started by: bh_hensem
1 Replies

5. Shell Programming and Scripting

Comparing files and capture return code

Hi, I would like to compare 2 files, and have a return code write to a file. regardless of the files contents are the same the code should be writing to a file (if both files contents are same then return code 0). A simple example will be great :) Thanks (3 Replies)
Discussion started by: khchong
3 Replies

6. Shell Programming and Scripting

How to compare data from 2 zip files and capture the new records from file2 to a new file

I have 2 zip files which have about 20 million records in each file. file 2 will have additional records than file 1. I want to compare the records in both the files and capture the new records from file 2 into another file file3. Please help me with a command/script which provides me the desired... (8 Replies)
Discussion started by: koneru
8 Replies

7. Shell Programming and Scripting

Get filesize and checksum of spooled file in a log file ...

Hi All, I have spooled some data in a file (a.dat, b.dat etc..) and after that I want to get the size and checksum of spooled file (a.dat, b.dat etc..) in a log file(file_info.log). By the way I dont want lost the previous output file info(Append data). View of log file that I want to... (5 Replies)
Discussion started by: ce_emre21
5 Replies

8. Shell Programming and Scripting

In Outlook spooled file data is not getting displayed properly

I am fetching a database table in spool file and send that details as a email. The Spooled file content is properly being displayed in UNIX. See Example below : ID|FILENAME |ABCDEF_DT |PROCESSED_DT |STATUS... (4 Replies)
Discussion started by: Ravi_007
4 Replies

9. Shell Programming and Scripting

Capture listed files from find command

Hi all, I am using command find $InputPath -type f -mtime +30 However, I need to capture the file listed in screen. May I know how to achieve this? Thank you. (12 Replies)
Discussion started by: ashly
12 Replies

10. Shell Programming and Scripting

How to capture hostnames or ip address in the log files generated?

Team, I have prepared a script which I run from my remote machine(Jump-box)server Below is the script FILEDATE=`date +%F` LOGFILE=/home/abc/scripts/xyz.$FILEDATE.log find /home/abc/scripts/xyz.*.log -type f -mtime -3 -delete touch $LOGFILE exec 1>$LOGFILE 2>&1 #healthcheck batch runs... (1 Reply)
Discussion started by: whizkidash
1 Replies
ESCPUTIL(1)						      Gutenprint Manual Pages						       ESCPUTIL(1)

NAME
escputil - maintain Epson Stylus inkjet printers SYNOPSIS
escputil [ -P printer | -r device ] [ -m model ] [ -u ] [ -c | -n | -a | -i | -d | -o | -s | -l | -M | -h ] [ -q ] DESCRIPTION
escputil is a command line utility to perform various maintenance tasks on Epson Stylus inkjet printers. These tasks include head align- ment, head cleaning, nozzle check, printer identification, and retrieval of ink level from the printer. OPTIONS
escputil accepts the following options: -P, --printer-name=printer Specify the name of the printer to operate on. The default is the default system printer. -r, --raw-device=device Specify the name of the device to write to directly rather than going through a printer queue. You must use this (rather than speci- fying a printer) when retrieving ink levels or identifying the printer, or if you wish to perform head alignment without specifying the printer model. -m, --model=model Specify the precise printer model for head alignment. -u, --new The printer is a new printer (Stylus Color 740 or newer). -c, --clean-head Clean the print head. This can also be performed from the printer front panel. -n, --nozzle-check Print a nozzle test pattern. Dirty or clogged nozzles will show as gaps in the pattern. If you see any gaps, you should run a head cleaning pass or two. -a, --align-head Align the print head. CAUTION: Misuse of this option may result in poor print quality and/or damage to the printer. You must either specify the printer model with the -m option, or use the raw printer device to allow escputil to detect the printer model. -i, --ink-level Obtain the ink level from the printer. This requires read/write access to the raw printer device. -d, --identify Query the printer for make and model information. This requires read/write access to the raw printer device. -o, --align-color Align the color print head (used by Stylus Color 480 and 580 only). CAUTION: Misuse of this option may result in poor print quality and/or damage to the printer. -s, --status Retrieve printer status. -l, --license Display the license/warranty terms of this program. -M, --list-models List the supported printer models. -h, --help Display a list of all command line options. -q, --quiet Suppress the banner. BUGS
USB-connected printers sometimes fail to identify or return ink levels. You may have to repeat the command. This is probably a timing issue in escputil, not a flaw in the printer. Anything requiring bidirectional communication with the printer (identify, ink levels, or head alignment without specifying the printer model) requires read/write access to the printer port (for example /dev/lp0). This may require these operations to be performed as root. In addition, kernel support is required for bidirectional communication. For Linux version 2.2, CONFIG_PRINTER_READBACK should be enabled; this is called CONFIG_PARPORT_1284 on 2.4 and later kernels. If the printer is performing self-test or head cleaning on power up, the identify and ink level commands will time out, although the printer successfully receives the command. The command will need to be reissued when the printer is quiescent. AUTHORS
Robert Krawitz. COPYRIGHT
Copyright (C) 2000 Robert Krawitz (rlk@alum.mit.edu) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. OTHER INFORMATION
The homepage of the Gutenprint project from which this utility was contributed is located at http://gimp-print.sourceforge.net/. SEE ALSO
lp(4), tunelp(8). Version 5.2.4 26 Jul 2009 ESCPUTIL(1)
All times are GMT -4. The time now is 10:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy