× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



"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 <jfelice@cronosys.com>\
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 <jfelice@cronosys.com>

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 LINUX5250@midrange.com.
| To subscribe to this list send email to LINUX5250-SUB@midrange.com.
| To unsubscribe from this list send email to LINUX5250-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.