auto_unrar
This is an old revision of the document!
#!/bin/bash
IMAGES=$(/bin/pwd)
for i in $(find . -maxdepth 1 -type d -mtime -1); do
if [ ! -e $i/.rarlock ] || [ ! -e $/.rarcc ]; then
cd $IMAGES/$i;
touch .rarlock;
rar e *.rar;
fi
if [ $? == "1" ]; then
rm .rarlock && touch .rarnc;
echo `date` "$i failed extraction" >> ~/.rarlog
else
rm .rarlock && touch .rarcc;
fi
done
auto_unrar.1249150024.txt.gz ยท Last modified: 2020/08/10 02:28 (external edit)
