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 09 Aug 2023, Christian Sacks said the following...
 
 CS> After testing the files downloaded with this script, I realised the files
 CS> themselves were corrupted, so updated my wrapper script to use this
 CS> syntax for the actual downloading;
 CS> 
 CS>   /usr/bin/gkermit -d /tmp/kermit-send.log -Xis $FILE
 CS> 
 CS> -X means eXternal - seemed appropriate
 CS>  i means Binary mode transfer (default) but wanted to force it to make
 CS> sure  s means Send with the filename as the argument
 CS> 
 CS> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.