I am trying to determine if a download is concurring in my download directory.
This is not working.
I also do not understand what lines #1 and #2 are doing.
Thanks
#!/bin/bash
# Estimates file usage
old=$(du -sh /home/andy/Downloads/)
while true; do
new=$(du -sh /home/andy/Downloads/)
if [ '$old -eq $new' ] ;
then
break
fi
1. old=$new
2. xdotool getactivewindow key Ctrl
sleep 5
done
This is not working.
I also do not understand what lines #1 and #2 are doing.
Thanks
#!/bin/bash
# Estimates file usage
old=$(du -sh /home/andy/Downloads/)
while true; do
new=$(du -sh /home/andy/Downloads/)
if [ '$old -eq $new' ] ;
then
break
fi
1. old=$new
2. xdotool getactivewindow key Ctrl
sleep 5
done