Okay this is what I could come up with
First go to your home directory and create the following script:
Code:
#!/bin/bash
FILE=file_list_with_downloads
ps -e | grep wget
if [ $? = 0 ]; then exit; fi #exit if wget is already downloading
cd ~/ #we want to download file to home folder
wget `head -1 $FILE`& #start wget and download the first file in the list
sed -i '1 d' $FILE #after that delete the first line so it's not downloaded again
For example we can call this script "download".
Next we need to add a cron job so that this script is executed automatically.
Code:
sudo echo "5 * * * * /home/USER/download" >> /etc/crontab
Change USER with your username. The 5 means it will check every 5 minutes if it can download the next file.
Make sure the download script is executable:
Next you need to create the download list file (the one that says file_list_with_downloads in the above script). You can use a different name if you like, just be sure to update it in the script.
Then you can add your downloads to the file like so:
Code:
echo "http://someserver.com/somefile.zip" >> file_list_with_downloads
And once the files are downloaded you can use pscp.exe from
PuTTY. (I am assuming you have a windows machine at home)
Then open a dos screen, chdir to the folder where you downloaded pscp.exe and execute with the following command:
Where USER is the username on the remote linux host and FILE is the name of the file that was downloaded (not including the full path ie. only the filename (somefile.zip) and c:\downloads you probably know what that is
Be WARNED though that I have not tested this and something might be wrong
