Re: print spooler to email
From: /dev/null (dhart_at_n.o.s.p.a.m.ultranet.com)
Date: 11/25/03
- Previous message: Ron Kirschner: "Re: unixware 7.1.3 and modem control"
- In reply to: Jean-Pierre Radley: "Re: print spooler to email"
- Next in thread: Scott McMillan: "Re: print spooler to email"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 25 Nov 2003 21:09:04 GMT
Jean-Pierre Radley wrote:
> /dev/null typed (on Tue, Nov 25, 2003 at 04:11:11PM +0000):
<snip>
>
> I just created a printer called mailme, using the dumb model, and using
> /dev/null. I made these changes:
>
> { #JPRadley
> while [ $i -le $copies ]
> do
> for file in $files
> do
> 0<${file} eval ${FILTER} 2>&1
> #JPRadley echo "\014\c"
> done
> i=`expr $i + 1`
> done
> } | mail -s PrintJobMailer jpr
>
> As expected, 'lp -dmailme file_name' put the contents of file_name in a
> message in my mailbox.
>
I had set the device to /dev/null after having used /usr/bin/mail as a
device, forgetting to stop & start the spooler, explaing my odd 'text
busy' msg.
Your method works perfectly as does my changing the FILTER eg,
FILTER="/usr/bin/mail -s report boopy"
Thanks for your help.
- Previous message: Ron Kirschner: "Re: unixware 7.1.3 and modem control"
- In reply to: Jean-Pierre Radley: "Re: print spooler to email"
- Next in thread: Scott McMillan: "Re: print spooler to email"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|