• TZUTC Kludge

    From Avon@21:1/101 to Deon on Wed Apr 21 19:50:06 2021
    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?

    With thanks, Paul

    --- Mystic BBS v1.12 A46 2020/08/26 (Windows/32)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)
  • From deon@21:2/116 to Avon on Wed Apr 21 21:14:01 2021
    Re: TZUTC Kludge
    By: Avon to Deon on Wed Apr 21 2021 07:50 pm

    Howdy,

    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:

    ===
    #!/bin/bash

    (echo -e \\x01CHRS: CP437 2 && echo -e \\x01TZUTC: 1000 && cat)
    ===

    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 ...

    ...

    ... God is dead. But don't worry - the Virgin Mary is pregnant again.
    --- SBBSecho 3.13-Linux
    * Origin: I'm playing with ANSI+videotex - wanna play too? (21:2/116)
  • From Oli@21:3/102 to deon on Wed Apr 21 12:40:40 2021
    deon wrote (2021-04-21):

    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:

    If the machine is a server only, I would set it to a timezone that doesn't have DST, like UTC or Etc/GMT-12. Or create a script that automatically insert the correct timezone for TZUTC.

    ---
    * Origin: . (21:3/102)
  • From Avon@21:1/101 to deon on Thu Apr 22 12:13:46 2021
    On 21 Apr 2021 at 09:14p, deon pondered and said...

    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 ...

    Thanks for the info. I'll need to read up on txt2pkt and how to use this when posting with hpt. I'll have a play later today/tomorrow :)

    --- Mystic BBS v1.12 A46 2020/08/26 (Windows/32)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)
  • From Avon@21:1/101 to deon on Sat Apr 24 10:45:39 2021
    On 21 Apr 2021 at 09:14p, deon pondered and said...

    Create a sciypt with:

    all done

    And make it executable (chmod +x name_of_script.sh)

    Yep done that too.

    I guess you would have TZUTC: 1200

    yep changed

    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?

    --- Mystic BBS v1.12 A46 2020/08/26 (Windows/32)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)
  • From Al@21:4/106.1 to Avon on Fri Apr 23 15:57:05 2021
    Re: Re: TZUTC Kludge
    By: Avon to deon on Sat Apr 24 2021 10:45 am

    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?

    This is a bit of a bummer. HPT post should add the TZUTC kludge when it posts messages using the local timezone.

    I notice this too with new file announcements, ping responses and the like. I read in the FIDOSOFT.HUSKY area recently that it is on the todo list to get that fixed so I hope they will get to that and then this kind of stuff won't be needed.

    I'm about to post in there about another issue so I'll bring it up.

    Ttyl :-),
    Al

    ... Is fire supposed to shoot out of it like that!?
    --- SBBSecho 3.14-Linux
    * Origin: The Rusty MailBox - Penticton, BC Canada (21:4/106.1)
  • From deon@21:2/116 to Avon on Sat Apr 24 09:35:48 2021
    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)
  • From Avon@21:1/101 to deon on Sun Apr 25 13:26:10 2021
    On 24 Apr 2021 at 09:35a, deon pondered and said...

    OK, you dont have to use txt2pkt, if you are getting message into msg bases another way.

    Just hpt post at present.

    * 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

    Gotcha this is what I'll try now.

    * 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?

    --- Mystic BBS v1.12 A46 2020/08/26 (Windows/32)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)
  • From fusion@21:1/616 to Al on Sat Apr 24 22:04:16 2021
    On 23 Apr 2021, Al said the following...

    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)

    --- Mystic BBS v1.12 A47 2021/04/20 (Windows/32)
    * Origin: cold fusion - cfbbs.net - grand rapids, mi (21:1/616)
  • From Al@21:4/106.1 to fusion on Sat Apr 24 19:10:18 2021
    Re: Re: TZUTC Kludge
    By: fusion to Al on Sat Apr 24 2021 10:04 pm

    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)

    Yes, that's a conundrum. Not all message readers tell you about the timezone and since messages posted here use the local timezone it may look off to some.

    Synchronet uses the timezone when displaying messages. It tells me this message of yours I am replying to was written three minutes ago.. :)

    Ttyl :-),
    Al

    ... Diets are for those who are thick and tired of it.
    --- SBBSecho 3.14-Linux
    * Origin: The Rusty MailBox - Penticton, BC Canada (21:4/106.1)
  • From deon@21:2/116 to Avon on Sun Apr 25 14:12:45 2021
    Re: Re: TZUTC Kludge
    By: Avon to deon on Sun Apr 25 2021 01:26 pm

    * 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?

    Yup.

    This is my full Hub 3 Queue cronjob:

    /usr/local/tools/show-queue 21|/usr/local/tools/cp437-tz.sh | txt2pkt -q -af "21:3/100" -at "21:3/100" -nf "Hub 3 Queue" -nt "All" -e FSX_STA -s "Status - Hub 3 Queue" -o "When do I get a holiday?" -d /fido/mailer/in.loc -

    ...

    ... Is man one of God's blunders or is god one of Man's blunders?
    --- SBBSecho 3.14-Linux
    * Origin: I'm playing with ANSI+videotex - wanna play too? (21:2/116)
  • From Avon@21:1/101 to deon on Sun Apr 25 19:19:28 2021
    On 25 Apr 2021 at 02:12p, deon pondered and said...

    and do you state the packet is from 3/100 and to 3/100?

    Yup.

    This is my full Hub 3 Queue cronjob:

    OK cool thanks. I have not implemented txt2pkt as yet but have set up the piping of my source file through the TZ script and I hope that the next stats announcements as well as upcoming nodelist and infopak hatch announcements
    will start to carry the correct kludge :)

    --- Mystic BBS v1.12 A46 2020/08/26 (Windows/32)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)