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