The program should be "lp5250d", not "tn5250d".
I'd recommend grabbing the latest version from CVS, there have been some
serious bug fixes in lp5250d since version 0.15.7.
The new version uses the "config file syntax" instead of the "command-line
switch syntax" for variables, but the learning curve is small.
Good Luck!
On Fri, 27 Oct 2000, Jason Felice wrote:
> "Mira Houska, TESmedia" wrote:
> >
> > Dear Sirs/Madam,
> > I found your e-mail addresses at man pages for tn5250 and scs2ascii. I want to ask
>you for help about following problem:
> >
> > I am running tn5250 version 0.15.7 as printserver on Linux RH 6.2 machine. I do
>not want to physically print the output, but email this immediately after end of each
>print job.
> >
> > Do you have any idea?
> > Thank you
> > Regards
>
> This can be fairly easily accomplished under Linux with the tn5250d
> program, filtering
> through the sendmail program. On RH6.x, sendmail is at
> /usr/bin/sendmail, so you
> can do something like this:
>
> tn5250d -c " |scs2ascii |sed '1i\
> Subject: This is the subject\
> To: Jason M. Felice <[EMAIL PROTECTED]>\
> From: THE PRINT SPOOLER <root@mybox>\
> \
> ' |sendmail -t" ...
>
> Where `...' is the other switches to connect as the right device and to
> the host and
> all. (I'm a little fuzzy on tn5250d - it's been awhile.)
>
> Note that if you are running as a user other than root, delete the
> `From:' line, otherwise
> sendmail will complain that you're trying to spoof another user.
>
> These are standard mail headers: addresses are separated on the `To:'
> line with commas, you
> can add other things like receipt requests, etc., if you choose, just
> copy those headers
> from an existing email.
>
> Disclaimer: This is untested, although I've done something similar for a
> fax queue. It
> probably works.
>
> -Jason M. Felice <[EMAIL PROTECTED]>
>
> P.S. I would appreciate it if any future requests regarding the tn5250
> software be sent
> to the linux5250 support list - you'll get more eyeballs there anyway.
> You can subscribe
> at:
>
> http://www.midrange.com/linux5250.shtml
>
> I'm copying this reply there.
>
> >
> [snip]
+---
| This is the LINUX5250 Mailing List!
| To submit a new message, send your mail to [EMAIL PROTECTED]
| To subscribe to this list send email to [EMAIL PROTECTED]
| To unsubscribe from this list send email to [EMAIL PROTECTED]
| Questions should be directed to the list owner/operator: [EMAIL PROTECTED]
+---