printcap printer -> email account script/filter help


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers printcap printer -> email account script/filter help
# 1  
Old 11-07-2008
printcap printer -> email account script/filter help

the basics: Tru64 unix 5.1b on alpha
have nail(now mailx), mail, and mailx(old version) available.

I'm trying to make a print filter to take a file that is printed to a specific printer in my printcap file and email it.

I put this in my printcap:

emailprinter:\
:lp=/dev/null:sh:mx#0:\
:sd=/var/spool/lpd/emailprinter:\
:lf=/var/log/emailprinter:\
if=/usr/shared/printfilter/emailprinter.filter:

I need to make the emailprinter.filter script to take the input from:
lp -d emailprinter /some/file.txt and send it to an email address.


any ideas?

Thanks in advance.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Need output in one line and filter servers, which has account expired or password exipred

I have 500 servers, in which I am looking to get hostname and password length information. when I am trying to run script(which I build), in which shows output in one line below and asking to reset password and also some of the servers does not give output. Please help #!/bin/bash for... (9 Replies)
Discussion started by: yash_message
9 Replies

2. Windows & DOS: Issues & Discussions

What happens to your skype account if you close outlook.com email account?

Hello, Does anyone know what happens to your skype account if you close the outlook.com email account which are linked together? As you know they are both owned by Microsoft. Thanks (0 Replies)
Discussion started by: milhan
0 Replies

3. Forum Support Area for Unregistered Users & Account Problems

Restart old account, change email for account

Hi there, I may have had a typo in my email previously provided. I have doublechecked my email for Scott's reply but havent seen it, so I am creating a new post. My new email can be either one of these: <removed> or <removed> I beleive my old email was <removed by admin> thanks for your... (1 Reply)
Discussion started by: AKelam_MagnusA
1 Replies

4. Shell Programming and Scripting

Filter data and send email

Need script....We get sar file sa15 with 7 days data which gets appended.. we want filter and parse the outptu such that we should filter only last 48 hours data and then email it to out team. we read -- sar -f sa15 Please help me with the script either by use sar itself or even sar and awk... (10 Replies)
Discussion started by: noorm
10 Replies

5. Shell Programming and Scripting

Printer filter - convert to ps then to pdf

Hi, I currently have a driver located in /etc/cups/interfaces that does the following: job="$1" user="$2" title="$3" numcopies="$4" options="$5" filename="$6" # Set up printer default modes echo -e "\033E\c" echo -e "\033)0B\c" cat "$filename" So then I want to do something... (2 Replies)
Discussion started by: stuaz
2 Replies

6. UNIX Desktop Questions & Answers

printer/filter setup

trying to get my laserjet to print under FC5. Got APSFILTER; what to answer to question 'parallel or serial printer port when it is USB? Do I need an updated filter software? I tried 'parallel', get 'permission denied when I try lp or lpr command- thanks- Marshall (2 Replies)
Discussion started by: blann
2 Replies

7. AIX

AIX printer filter

I am trying to setup remote printer queues on a AIX 5.2 system that sends all print requests through a filter by default. The application that is running on the LPar is coded to call the lp command to produce a print. Ideally I would like a single queue per remote printer to pass the data... (4 Replies)
Discussion started by: blacksm
4 Replies

8. UNIX for Advanced & Expert Users

email account on subhost

Hai i need to create an email account for subhost... I tried creating an unix user account... But the adduser (or) useradd command is not working in subhost login even when i entered with the root login of the subhost... If i create unix user account with root login of host, then the mail... (1 Reply)
Discussion started by: collins
1 Replies

9. UNIX for Dummies Questions & Answers

email account for subdomain (HOW-TO)

Hai i need to create an email account for subhost... I tried creating an unix user account... But the adduser (or) useradd command is not working in subhost login even when i entered with the root login of the subhost... If i create unix user account with root login of host, then the mail... (1 Reply)
Discussion started by: collins
1 Replies

10. Programming

email account

Dear All Mine is a shared hosted domain name say mydomain.com service.. I would like to create email account info@mydomain.com through a program.. I am running on redhat linux 8. I have been asking a lot... Please somebody help me in this issue.. or recommenfd me any book which explains the... (3 Replies)
Discussion started by: collins
3 Replies
Login or Register to Ask a Question
conv_lpd(1M)						  System Administration Commands					      conv_lpd(1M)

NAME
conv_lpd - convert LPD configuration SYNOPSIS
conv_lpd [-c printers | -c printcap] [-n] file DESCRIPTION
conv_lpd converts LPD printer configuration information from file to a printers.conf or a printcap file (see printers.conf(4)). file specifies the name of the input file, and can be either in printers.conf or printcap format. If file is in printers.conf format, it con- verts it to a printcap file. If file is in printcap format, it converts it to a printers.conf file. OPTIONS
The following options are supported: -c printers | -c printcap Specifies the type of output file produced by the conversion. -c printers converts to a printers.conf file. -c printcap converts to a printcap file. -c printers is the default. -n Preserves the namelist during the conversion. OPERANDS
The following operands are supported: file The file to be converted. EXAMPLES
Example 1: Converting a printcap file to a printers.conf file. The following example converts a printcap file to a printers.conf file. example% conv_lpd /etc/printcap Example 2: Converting a printcap file to a printers.conf file and preserving the namelist. The following example converts a printcap file to a printers.conf file and preserves the namelist. example% conv_lpd -c printers -n /etc/printcap Example 3: Converting a printers.conf file to a printcap file and preserving the namelist. The following example converts a printers.conf file to a printcap file and preserves the namelist. example% conv_lpd -c printcap -n /etc/printers.conf EXIT STATUS
The following exit values are returned: 0 Successful completion. non-zero An error occurred. FILES
/etc/printers.conf System printer configuration database. /etc/printcap SunOS 4.x printer capability database. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWpcu | +-----------------------------+-----------------------------+ SEE ALSO
lpset(1M), printers.conf(4), attributes(5) SunOS 5.10 9 Sep 1996 conv_lpd(1M)