On 14 Aug 2021, g00r00 said the following...
g0> The date is already set on the timestamp of the file within the listing,
g0> so you can already use that to accomplish what you're hoping for in a
g0> very simple way:
g0> For example you can do:
g0> "wget -N http://mysticbbs.com/downloads/prealpha/mys112a47_l64.rar"
I have a small shell script setup to check whenever I think about it:
### begin myschk.sh ###
#!/bin/bash
cd /home/pi/mystic
echo "Current version:"
/home/pi/mystic/mystic -ver
cd /tmp
[ -f "/tmp/mys112a47_p32.zip" ] && rm -f /tmp/mys112a47_p32.zip
wget -q http://mysticbbs.com/downloads/prealpha/mys112a47_p32.zip
echo #
unzip -l ./mys112a47_p32.zip
echo #
read -p "Delete zip? " -n 1 -r
echo #
if [[ $REPLY =~ ^[Yy]$ ]]
then
rm -f /tmp/mys112a47_p32.zip
fi
echo #
### end myschk.sh ###
$ ./myschk.sh
Current version:
Mystic BBS v1.12 A47 Raspberry Pi/32 Compiled 2021/08/14 09:02:05
Archive: ./mys112a47_p32.zip
Length Date Time Name
--------- ---------- ----- ----
1278 2021-08-14 12:02 file_id.ans
905 2021-08-14 12:02 file_id.diz
113416 2021-08-14 12:02 install
5866272 2021-08-14 12:02 install_data.mys
14653 2021-08-14 12:02 unix.install.txt
136624 2021-08-14 12:02 upgrade
31059 2021-08-14 12:02 upgrade.txt
223925 2021-08-14 12:02 whatsnew.txt
--------- -------
6388132 8 files
Delete zip? y
Jay
... Finagle's first Law: If an experiment works, something has gone wrong.
--- Mystic BBS v1.12 A47 2021/08/14 (Raspberry Pi/32)
* Origin: Northern Realms (1:229/664)
|