Tech Support Forum banner
Status
Not open for further replies.
1 - 4 of 4 Posts

·
Registered
Joined
·
3 Posts
Discussion Starter · #1 ·
Hello,

First post in this forum.

I am trying to set up a task in Vista Task Scheduler for the purpose of downloading a mirrored copy of a site via FTP using wget.

Now, I installed wget and successfully run the following in the command prompt:

wget ftp://myUid:[email protected] -m

The site files are successfully downloaded to the location where the command prompt starts (C:\Users\MyName).

However, nothing happens when I attempt to run this as scheduled task:
Action: start a program
Program/Script: C:\Windows\System32\cmd.exe
Arguments: /c "wget ftp://myUid:[email protected] -m"

Nor does it work with the following argument:

Arguments: /c "F:\path\to\file\scheduled_backup_cmd.bat"

The last run result is always 0x1, which AFAIK means the task completed successfully, but I do not see any files downloaded to C:\Users\MyName.

What am I doing wrong? Any comments much appreciated.

Thank you.
 

·
Registered
Joined
·
3 Posts
Discussion Starter · #3 ·
Hello,

Thank you for reply.

Do you mean that at the moment the wget was executed the host was inaccessible or the Internet connection was offline?

I did check many times but that wasn't the problem - Inet connection online and host accessible.

What bothers me is that the 0x1 result is return immediately after initiating the task, whereas execution of the command directly in the command prompt takes about an hour to complete (about 1GB of data is downloaded via FTP).

So, it looks as if cmd.exe is started properly but the wget command is not executed. It might be a syntax error, but as I do not see any output I can't tell.

Is there a way to log the output to a file? If so, how?

Regards.
 
1 - 4 of 4 Posts
Status
Not open for further replies.
Top