Improved logging
This commit is contained in:
4
pdt.sh
4
pdt.sh
@@ -8,8 +8,10 @@ do
|
|||||||
if [[ $output -gt 0 ]]
|
if [[ $output -gt 0 ]]
|
||||||
then
|
then
|
||||||
echo "ERROR! Exiting the program"
|
echo "ERROR! Exiting the program"
|
||||||
|
echo "Processed file: $file - $output" | tee -a "/var/log/pdt$(date +%d%m%Y).log"
|
||||||
|
echo "Log saved to /var/log/pdt$(date +%d%m%Y).log"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Processed file: $file: $output" | tee -a "/var/log/pdt$(date +%d%m%Y).log"
|
#echo "Processed file: $file: $output" | tee -a "/var/log/pdt$(date +%d%m%Y).log"
|
||||||
done
|
done
|
||||||
Reference in New Issue
Block a user