I wrote this script to get some files off a webcam server. The files, are all downloaded, but when I was running the script, the last line never ends, even after the file was downloaded. So, I would like to know why. Why did this script never terminate? The wget
command got the last file, but did not exit.
#!/bin/bash
x="127.0.0.1"
z=0
while read line
do z=$(($z+1));
echo $x${line//};
wget $x${line//};
done < "/home/jay/Desktop/PINGS"
read
So why doesn't this script terminate?