Files
pdt/pdt.sh
2026-01-14 16:00:55 +01:00

15 lines
349 B
Bash

#!/bin/bash
readarray -t files < /var/www/html/storage/focode/file_list_temp.txt
for file in "${files[@]}"
do
output=$(php compress.php process "$file")
if [[ $output -gt 0 ]]
then
echo "ERROR! Exiting the program"
exit 1
fi
echo "Processed file: $file: $output" | tee -a "/var/log/pdt$(date +%d%m%Y).log"
done