Need to capture spooled print files


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Need to capture spooled print files
# 1  
Old 11-30-2001
Question Need to capture spooled print files

Hi.
I run hpux 10.20. My problem is that I need to save or hold print spool files. I print using lp, and the printers are connected to HP jetdirect print servers.
Any thoughts would be appreciated.
Stephen Roberts
# 2  
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
Login or Register to Ask a Question