I use wget like this:
wget --load-cookies cookies.txt downloadlink
The download is successful. But the problem is that it stores useless files from the link to the directory after I delete it for many times. It auto creates www.mylink.com dir in the directory no matter how many times I delete it. I try to find where the cookies is saved on my server so I can delete them, but I can't find them.
I hope someone can help as the files that are automatically stored are getting bigger each second. Also there's a file called .fuse_hidden0345bd8d000004e3 which is getting bigger too, and I can't delete it either.
The OP solved the problem and posted the solution here on Ubuntu Forums.
(Thanks to vasa1 for finding this.)
While the problem remains somewhat vague, the solution can be applied easily, so this may help others in the same situation.
The solution was to kill wget (probably with killall wget assuming no other important wget instances). Apparently the problem related to a session or sessions that had remained open due to running wget instances.
More information does not appear to be available.
@lance: Please still post an answer if you can give more information, for example, if you know why your solution worked.
I'm using a script called Responser which sends email when any of the my sites are down/slow. I just wanted to check if it's sending the mail only if the sites are really down or slow(as I checked it accessing as soon I got the error mails and sites was fine). I thought of using wget as it shows the speed and response time and I want to schedule it to compare it with my responser script whether both sends the mail at the same time saying error.
I've postfix installed and I could send mails using mail command to any e-mail id from the terminal. I want the output of wget http://www.mysite.com to be mailed with the condition if response time is greater than 5 seconds. Then I can schedule it to run at every 5 mins. I saw many having good programming skills here and hope someone could help me.
The script you want is something like this:
# by desgua to test server down
# This script is supposed to be named ".ping.time.sh" and
# to be put at ~/
# to test what happens when server is down:
# change www.mysite.com for www.serverdown.com
# As asked, I supposed you have a script to send mail and named
sleep 300 # as asked, to run at every 5 minutes
pingtime=$(ping -w 5 www.mysite.com | grep ttl)
if [ $pingtime = ] ; then
echo 'down' ; ~/.script.to.send.mail.sh ; else
echo 'up' ; ~/.ping.time.sh
ps. At your script to send the email, put something to run again the script I made after the mail has been sent