Re: Re: TZUTC Kludge
By: Avon to deon on Sat Apr 24 2021 10:45 am
Then you pipe through the script before calling txt2pkt.
EG: For the Hub 3 queue stats I use
/usr/local/tools/show-queue|usr/local/tools/cp437-tz.sh|txt2pkt ...
This bit I am lost. I see I have a copy of txt2pkt but have not used it nor
am I unsure how I target the packet I am trying add this kludge to. So if I have a text file containing content I want to post called
info.txt then I am going to need to call the kludge script, somehow insert the extra kludge at
the top of that info.txt file then use txt2pkt to post to the echomail area instead of hpt post?
OK, you dont have to use txt2pkt, if you are getting message into msg bases another way.
My utilitiy takes a stream of data and prepends the required kludges.
So, if you have your stuff in info.txt, then there are many ways to skin this cat:
* Whatever creates info.txt - if is created to stdout, that you are redirecting to "info.txt", you could call cp437-tz.sh before the redirection.
eg: my_script_that_creates_info | cp437-tz.sh > info.txt
* If your script that creates info.txt doesnt send it to stdout, but to a filename, then after info.txt is created, you can call cp437-tz.
eg: cat info.txt | cp437-tz > info_with_kludges.txt
* Or in my case, I stream everything into txt2pkt, so no "file" is created.
eg: my_script | cp437-tz | txt2pkt
txt2pkt just creates a packet with "from", "to", "origin", etc and can create that packet from stdin, or using data in an existing file (eg: your info.txt).
...лоеп
... Extremely happy and extremely unhappy men are alike prone to grow hard-hea --- SBBSecho 3.13-Linux
* Origin: I'm playing with ANSI+videotex - wanna play too? (21:2/116)