• befpack.bat

    From Martin Kazmaier@1:340/1101 to Tommi Koivula on Thursday, January 11, 2024 12:57:00
    I've got the following in the command line to run before the pack is done,
    but it doesn't ever add the tzutc kludge... What am I doing wrong:

    cd \ele\fastecho\tempout\
    set findthis=TID: Fastecho 1.46.1 43288
    set addthis=TID: Fastecho 1.46.1 43288\x0D\x01TZUTC: -0700
    for %%a in (*.QQQ) DO (
    sed -b -i 's/%findthis%/%addthis%/gi' %%a
    )

    ---
    Shurato, Sysop Shurato's Heavenly Sphere (ssh, telnet, pop3, ftp,nntp)
    (ports 22, 23, 110, 21, 119) (ssh: login bbs password shsbbs)


    *** THE READER V4.50 [freeware]
    ---
    * Origin: Shurato's Heavenly Sphere telnet://shsbbs.net (1:340/1101)
  • From Tommi Koivula@2:221/1 to Martin Kazmaier on Friday, January 12, 2024 21:12:08
    On 11.01.2024 14:57, Martin Kazmaier wrote:

    I've got the following in the command line to run before the pack is done, but it doesn't ever add the tzutc kludge... What am I doing wrong:

    cd \ele\fastecho\tempout\
    set findthis=TID: Fastecho 1.46.1 43288
    set addthis=TID: Fastecho 1.46.1 43288\x0D\x01TZUTC: -0700
    for %%a in (*.QQQ) DO (
    sed -b -i 's/%findthis%/%addthis%/gi' %%a
    )


    What shell are your running it from? cmd.exe of windows? How about some logging in your .bat file to see what it actually does?

    Cygwin and bash would be a good idea. 32bit cygwin is not supported anymore but it can be installed..

    'Tommi

    ---
    * Origin: =-=--------------=-= (2:221/1.0)
  • From Martin Kazmaier@1:340/1101 to Tommi Koivula on Saturday, January 13, 2024 14:14:00


    * In a message originally to Martin Kazmaier, Tommi Koivula said:

    Thunderbird/115.6.1. On 11.01.2024 14:57, Martin Kazmaier wrote:

    I've got the following in the command line to run before the pack is
    done,
    but it doesn't ever add the tzutc kludge... What am I doing wrong:

    cd \ele\fastecho\tempout\
    set findthis=TID: Fastecho 1.46.1 43288
    set addthis=TID: Fastecho 1.46.1 43288\x0D\x01TZUTC: -0700
    for %%a in (*.QQQ) DO ( sed -b -i 's/%findthis%/%addthis%/gi' %%a )

    cmd.exe of windows. I installed sed in win32 from windows 10 using
    chocolatey. Do I maybe not need the parenthesi (I'm guessing that's a
    word...)?

    ---
    Shurato, Sysop Shurato's Heavenly Sphere (ssh, telnet, pop3, ftp,nntp)
    (ports 22, 23, 110, 21, 119) (ssh: login bbs password shsbbs)


    ---
    * Origin: Shurato's Heavenly Sphere telnet://shsbbs.net (1:340/1101)
  • From Martin Kazmaier@1:340/1101 to Tommi Koivula on Tuesday, January 16, 2024 19:09:00

    On 11.01.2024 14:57, Martin Kazmaier wrote:

    I've got the following in the command line to run before the pack is
    done,
    but it doesn't ever add the tzutc kludge... What am I doing wrong:

    cd \ele\fastecho\tempout\ set findthis=TID: Fastecho 1.46.1 43288 set
    addthis=TID: Fastecho 1.46.1 43288\x0D\x01TZUTC: -0700 for %%a in
    (*.QQQ) DO ( sed -b -i 's/%findthis%/%addthis%/gi'
    %%a )


    What shell are your running it from? cmd.exe of windows? How about some logging in your .bat file to see what it actually does?

    Cygwin and bash would be a good idea. 32bit cygwin is not supported anymore but it can be installed..

    And the links for the 32bit cygwin installer don't work in 32 bit OSes.

    I don't know how to log this, sed doesn't have the ability to designate a logfile, unfortunately. I could put pauses in the batch file, and monitor
    the temporary directories, but I'd have to know that I was sending echomail out.

    ---
    Shurato, Sysop Shurato's Heavenly Sphere (ssh, telnet, pop3, ftp,nntp)
    (ports 22, 23, 110, 21, 119) (ssh: login bbs password shsbbs)


    *** THE READER V4.50 [freeware]
    ---
    * Origin: Shurato's Heavenly Sphere telnet://shsbbs.net (1:340/1101)