Can you remind me how I can inject this kludge to posts that HPT is creating when I post things like HUB stats to FSX_STA echo? From
memory I need a
script that injects this?
Can you remind me how I can inject this kludge to posts that HPT is
creating when I post things like HUB stats to FSX_STA echo? From
memory I need a script that injects this?
Yup, easy peasy...
Create a sciypt with:
Create a sciypt with:
#!/bin/bash
(echo -e \\x01CHRS: CP437 2 && echo -e \\x01TZUTC: 1000 && cat)
===
Then you pipe through the script before calling txt2pkt. /usr/local/tools/show-queue|usr/local/tools/cp437-tz.sh|txt2pkt ...
Create a sciypt with:
And make it executable (chmod +x name_of_script.sh)
I guess you would have TZUTC: 1200
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?
Then you pipe through the script before calling txt2pkt.This bit I am lost. I see I have a copy of txt2pkt but have not used it nor
EG: For the Hub 3 queue stats I use
/usr/local/tools/show-queue|usr/local/tools/cp437-tz.sh|txt2pkt ...
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.
* 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).
This is a bit of a bummer. HPT post should add the TZUTC kludge when it posts messages using the local timezone.
i don't know if this is related, but messages on my machine don't show local dates.. at least the ones from you are post-dated (shown on the date posted as you perceive it.. duno how to word that lol)
* 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).
and do you state the packet is from 3/100 and to 3/100?
and do you state the packet is from 3/100 and to 3/100?
Yup.
This is my full Hub 3 Queue cronjob:
Sysop: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,044 |
Nodes: | 16 (1 / 15) |
Uptime: | 46:00:40 |
Calls: | 500,943 |
Calls today: | 6 |
Files: | 109,374 |
D/L today: |
5,796 files (1,061M bytes) |
Messages: | 304,051 |