Re: Adding kermit as a protocol option
[email protected] (Christian Sacks)
| Newsgroups | alt.bbs.mystic |
|---|---|
| Organization | Agency HUB, Dunedin - New Zealand |
| Message-ID | <[email protected]> |
On 08 Aug 2023, Alexander Grotewohl said the following...
AG> if you're comfortable doing a little programming you could probably make
AG> a script to read the lines in file.lst then run gkermit like it wants:
AG>
AG> /usr/bin/gkermit -d /tmp/kermit-send.log -Ts file1 file2 file3
AG>
AG> (or maybe it needs -Ts in front of every file.. don't use it so i can't
AG> 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