• Adding kermit as a protocol option

    From Christian Sacks@1:396/4 to All on Tuesday, August 08, 2023 18:25:36
    From: nospam.Christian.Sacks@f5.n250.z2.fidonet.org (Christian Sacks)

    Hey g00r00,

    I've installed `gkermit` on my linux host, and in protocol editor have made a new "kermit" protocol, and the send/recv commands are like this;

    Send Command /usr/bin/gkermit -d /tmp/kermit-send.log -Ts %3
    Recv Command /usr/bin/gkermit -d /tmp/kermit-recv.log -Tr %3

    With %3 as the filename(s), it seems to generate a file.lst on the client end, and inside the file that it downloads just has a line for each file with it's full filepath on the bbs, and doesn't download the actual file...

    I looked at the default sexyz config which uses @%3 which I thought might be required instead, but adding the @%3 instead just errors immediately with the filename not being found according to the client.

    Do you have any information about what %3 is exactly and anything else useful for the protocol editor? the wiki pages are empty for protocol editor and would
    love to get this working.


    Cheers for your help =)

    .... Light year: 1/3 less calories than your regular year

    --- NewsGate v1.0 gamma 2
    * Origin: News Gate @ Net396 -Huntsville, AL - USA (1:396/4)
  • From Alexander Grotewohl@1:396/4 to All on Tuesday, August 08, 2023 21:09:00
    From: nospam.Alexander.Grotewohl@f616.n120.z1.fidonet.org (Alexander Grotewohl)

    On 08 Aug 2023, Christian Sacks said the following...

    I've installed `gkermit` on my linux host, and in protocol editor have made a new "kermit" protocol, and the send/recv commands are like this;

    Send Command /usr/bin/gkermit -d /tmp/kermit-send.log -Ts %3
    Recv Command /usr/bin/gkermit -d /tmp/kermit-recv.log -Tr %3

    With %3 as the filename(s), it seems to generate a file.lst on the
    client end, and inside the file that it downloads just has a line for
    each file with it's full filepath on the bbs, and doesn't download the actual file...

    having searched around the docs a bit it looks like kermit does batch xfers differently than most bbs software would expect. you would likely just have to turn 'batch' off in the protocol config and have it work one file at a time. (batch toggles whether %3 is just one file by itself, or a file list file)

    I looked at the default sexyz config which uses @%3 which I thought
    might be required instead, but adding the @%3 instead just errors immediately with the filename not being found according to the client.

    @ is a sexyz parameter not a mystic one. if it finds that @ at the beginning of
    the filename it will read that file line by line and send each of the files listed. kermit doesn't support this so that's the problem.

    if you're comfortable doing a little programming you could probably make a script to read the lines in file.lst then run gkermit like it wants:

    /usr/bin/gkermit -d /tmp/kermit-send.log -Ts file1 file2 file3

    (or maybe it needs -Ts in front of every file.. don't use it so i can't test it..)

    then for the mystic protocol you'd just have

    /wherever/yourprogram %3

    and batch turned on.

    --- NewsGate v1.0 gamma 2
    * Origin: News Gate @ Net396 -Huntsville, AL - USA (1:396/4)
  • From Christian Sacks@1:396/4 to All on Wednesday, August 09, 2023 18:25:20
    From: nospam.Christian.Sacks@f5.n250.z2.fidonet.org (Christian Sacks)

    On 08 Aug 2023, Alexander Grotewohl said the following...

    if you're comfortable doing a little programming you could probably make
    a script to read the lines in file.lst then run gkermit like it wants:

    /usr/bin/gkermit -d /tmp/kermit-send.log -Ts file1 file2 file3

    (or maybe it needs -Ts in front of every file.. don't use it so i can't test it..)

    I am grateful for your thoughts, with them I have made this script;

    #!/usr/bin/env bash
    FILELIST="$1"
    FILES=$(cat $FILELIST|tr '\n' ' ')
    for FILE in $FILES; do
    echo "/usr/bin/gkermit -d /tmp/kermit-send.log -XTs $FILE"
    /usr/bin/gkermit -d /tmp/kermit-send.log -XTs $FILE
    done

    .... and then in the protocol editor I use this;

    Active Yes
    OS All
    Batch Yes
    Hot Key K
    Description Kermit (testing)
    Send Command /mystic/kermit_batch.sh %3
    Recv Command /usr/bin/gkermit -d /tmp/kermit-recv.log -XTr %3

    I've tested using "qodem" terminal, and with a single and multiple files in a batch it works perfectly (to download from the BBS to the client).

    I shall next attempt to test the uploads, but I assume this will just be ok as it is.

    I shall let y'all know how it goes.
    FWIW kermit seems to be much quicker than zmodem =)

    .... That's not a bug, it's an undocumented feature

    --- NewsGate v1.0 gamma 2
    * Origin: News Gate @ Net396 -Huntsville, AL - USA (1:396/4)
  • From Christian Sacks@1:396/4 to All on Wednesday, August 09, 2023 18:48:57
    From: nospam.Christian.Sacks@f5.n250.z2.fidonet.org (Christian Sacks)

    On 09 Aug 2023, Christian Sacks said the following...

    On 08 Aug 2023, Alexander Grotewohl said the following...

    if you're comfortable doing a little programming you could probably m a script to read the lines in file.lst then run gkermit like it wants

    /usr/bin/gkermit -d /tmp/kermit-send.log -Ts file1 file2 file3

    (or maybe it needs -Ts in front of every file.. don't use it so i can test it..)

    I am grateful for your thoughts, with them I have made this script;

    #!/usr/bin/env bash
    FILELIST="$1"
    FILES=$(cat $FILELIST|tr '\n' ' ')
    for FILE in $FILES; do
    echo "/usr/bin/gkermit -d /tmp/kermit-send.log -XTs $FILE"
    /usr/bin/gkermit -d /tmp/kermit-send.log -XTs $FILE
    done

    ... and then in the protocol editor I use this;

    Active Yes
    OS All
    Batch Yes
    Hot Key K
    Description Kermit (testing)
    Send Command /mystic/kermit_batch.sh %3
    Recv Command /usr/bin/gkermit -d /tmp/kermit-recv.log -XTr %3

    I've tested using "qodem" terminal, and with a single and multiple files in a batch it works perfectly (to download from the BBS to the client).

    I shall next attempt to test the uploads, but I assume this will just be ok as it is.

    I shall let y'all know how it goes.
    FWIW kermit seems to be much quicker than zmodem =)

    ... That's not a bug, it's an undocumented feature

    --- Mystic BBS v1.12 A48 2022/07/15 (Linux/64)
    * Origin: thE qUAntUm wOrmhOlE, rAmsgAtE, uK. bbs.erb.pw (2:250/5)

    After testing the files downloaded with this script, I realised the files themselves were corrupted, so updated my wrapper script to use this syntax for the actual downloading;

    /usr/bin/gkermit -d /tmp/kermit-send.log -Xis $FILE

    -X means eXternal - seemed appropriate
    i means Binary mode transfer (default) but wanted to force it to make sure
    s means Send with the filename as the argument

    Reckon this is good to go now =)

    .... Help! I can't find the "ANY" key.

    --- NewsGate v1.0 gamma 2
    * Origin: News Gate @ Net396 -Huntsville, AL - USA (1:396/4)
  • From Christian Sacks@1:396/4 to All on Wednesday, August 09, 2023 21:27:07
    From: nospam.Christian.Sacks@f5.n250.z2.fidonet.org (Christian Sacks)

    On 09 Aug 2023, Christian Sacks said the following...

    After testing the files downloaded with this script, I realised the files themselves were corrupted, so updated my wrapper script to use this
    syntax for the actual downloading;

    /usr/bin/gkermit -d /tmp/kermit-send.log -Xis $FILE

    -X means eXternal - seemed appropriate
    i means Binary mode transfer (default) but wanted to force it to make sure s means Send with the filename as the argument

    Reckon this is good to go now =)

    Another update, this time it also allows messages in message bases to be saved by kermit too;

    #!/usr/bin/env bash
    FILELIST="$1"
    FILES=$(cat $FILELIST|tr '\n' ' ')
    if [[ "$(basename $FILELIST)" == "file.lst" ]]; then
    for FILE in $FILES; do
    echo "Sending file: $FILE"
    /usr/bin/gkermit -d /tmp/kermit-send.log -Xis $FILE
    done
    else
    echo "Sending file: $FILELIST"
    /usr/bin/gkermit -d /tmp/kermit-send.log -XTs $FILELIST
    fi
    rm $FILELIST

    Still haven't tested uploads yet, but that is next =)

    .... My reality check just bounced

    --- NewsGate v1.0 gamma 2
    * Origin: News Gate @ Net396 -Huntsville, AL - USA (1:396/4)
  • From Alexander Grotewohl@1:396/4 to All on Wednesday, August 09, 2023 20:58:53
    From: nospam.Alexander.Grotewohl@f616.n120.z1.fidonet.org (Alexander Grotewohl)

    On 09 Aug 2023, Christian Sacks said the following...

    I've tested using "qodem" terminal, and with a single and multiple files in a batch it works perfectly (to download from the BBS to the client).

    that's awesome, glad it worked out!

    FWIW kermit seems to be much quicker than zmodem =)

    yeah.. i'm not sure how much the protocol itself has changed, but iirc it was an official university-sponsored project until recently. few decades worth of tweaks here and there.

    --- NewsGate v1.0 gamma 2
    * Origin: News Gate @ Net396 -Huntsville, AL - USA (1:396/4)