hi,
thanks a lot everything works fine now, I just forgot the
'sendmail_to_user' option thats why I was getting 'script failed' allthe
time...
thanks
~christoph
Patrick Powell schrieb:
>
> > From [EMAIL PROTECTED] Thu Aug 9 08:19:52 2001
> > Date: Thu, 09 Aug 2001 16:04:52 +0200
> > From: Christoph Beyer <[EMAIL PROTECTED]>
> > To: lprng mailingliste <[EMAIL PROTECTED]>
> > Subject: LPRng: job completion notification
> >
> > hi Patrick,
> >
> > I try to use SAMBA for my windows clients, and want them to get notified
> > by a pop up message when there jobs are printed. I thought it would be
> > possible to let SAMBA put som informations in the controlfile via the
> > lpr -m command and then use 'sendmail=my/script/to/notify/users' but
> > somehow the lpd server expects a special behaviour (probably sendmail
> > alike) and exits with JABORT when he executes my script. In the logs I
> > see 'Make passthrough exec format error' what behaviour must I simulate
> > to get it going ?
> >
> > thanks
> > ~christoph
> >
> >
> >
> > --
> > /* Christoph Beyer | Office: Building 2b / 23 *\
> > * DESY | Phone: 040-8998-2317 *
> > * - IT - | Fax: 040-8994-2317 *
> > \* 22603 Hamburg | http://www.desy.de */
>
> The most likely culprit is the permissions on your file.
> Here is how I checked this.
>
> 1. I create a dummy printer:
>
> t1:lp=/var/tmp/t1_test:sd=/var/tmp/LPD/%P
> :other junk options for testing
> :sendmail_to_user
> :sendmail=/var/tmp/LPD/sendit
>
> Then do:
> checkpc -f
> lpc reread
>
> NOTE: the sendmail_to_user is there to prevent this
> from being used as a 'spam mail' attack.
>
> 2. here is the /var/tmp/LPD/sendit script:
> #!/bin/sh
> # test mail sending
> PATH=/bin:/usr/bin:/usr/local/bin
> export PATH
> date >/tmp/f
> set >>/tmp/f
> cat >>/tmp/f
> exit 0
>
> Don't forget to do:
> chmod a+x /tmp/sendit
> ** remove /tmp/f **
> rm /tmp/f
>
> 3. Now test:
> lpr -Ptest /tmp/file
--
/* Christoph Beyer | Office: Building 2b / 23 *\
* DESY | Phone: 040-8998-2317 *
* - IT - | Fax: 040-8994-2317 *
\* 22603 Hamburg | http://www.desy.de */
-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address
If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body. For the impatient,
to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED]
with: | example:
subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED]
If you have major problems, send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------