Commit 22248f3e authored by Leo Leung's avatar Leo Leung Committed by root
Browse files

The stupid screen pipe redirection with tee needs an end cat to work

parent f1e1ab3a
......@@ -16,7 +16,7 @@ StartTime=$(date +%s)
while read disk size type label ; do
if [ -b /dev/$disk ] ; then
echo "Starting backup on disk $disk ($label)"
screen -S backup-$disk -dm bash -c "sh start.sh $disk | tee >(mail -s \"Backup process report $label\" leo@steamr.com)"
screen -S backup-$disk -dm bash -c "sh start.sh $disk | tee >(mail -s 'Backup process report $label' leo@steamr.com) | cat"
fi
done < <(echo "$Disks")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment