Download File every 30 minutes?

nnCron and nnCron LITE discussion

Download File every 30 minutes?

Postby lost1 » Thu, 04 May 2006, 22:31

How would I go about setting up a cron job to download a file from the web and save it to a specific location on my machine every 30 minutes?

Can that be done using just nnCron (and maybe a plugin?) or do I need some additional software to do it?

... and if I can do it with just nnCron and a plugin, what would be the command?

I tried using the http.spf plugin and setting up an HTTP-GET command, but I'm a total n00b to cron stuff, so I'm probably doing it wrong.
lost1
 
Posts: 3
Joined: Thu, 04 May 2006, 21:58
Location: Minneapolis,MN

Postby Lynx » Thu, 04 May 2006, 23:37

Right click nnCron icon in System Tray-> New Task.
Name task.
Choose Minutely, every 30 minutes.
Check Run as logged user option.
Active option must be checked.
Go to Action tab.
Select Run script.
In appeared window write:
Code: Select all
     S" http://www.site.org/your_file.zip" HTTP-GET 0=
     IF
        S" c:\directory\your_file.zip" FWRITE
     ELSE 2DROP THEN

Code from here.
Of course, change address and location to yours.
But it would be better to use download manager to download file.
PS. Read help - everything's written there ;)
User avatar
Lynx
 
Posts: 321
Joined: Thu, 04 May 2006, 20:07
Location: Уфа

Postby lost1 » Fri, 05 May 2006, 00:41

Do I have to be running the full version of nnCron? I have the "lite" edition and there is no system tray icon.
lost1
 
Posts: 3
Joined: Thu, 04 May 2006, 21:58
Location: Minneapolis,MN

Postby Lynx » Fri, 05 May 2006, 01:14

Well, yes, that code was for full version. And I can't make my lite version work... But looks like lite-version can't do such task.
So I'll just make advice - download any console download manager (for example, wget) and create task with download manager.
User avatar
Lynx
 
Posts: 321
Joined: Thu, 04 May 2006, 20:07
Location: Уфа


Return to nnCron forum (English)

Who is online

Users browsing this forum: No registered users and 1 guest