wget - How can I direct the file to save to a different path?

Highlighted
Nine Stars

wget - How can I direct the file to save to a different path?

I have a tSystem component which runs a wget command to get a file from a website.

 

Here is the command:

"cmd /c wget --user=userHere --password=passHere http://websiteHere/fileHere_2019-04-18.zip"

 

Currently the file is going to this path:

D:\TOS_DI-20181026_1147-V7.1.1\workspace\TALEND\poms\jobs\process\myJob\wgetfilepull_0.1\src\main\ext-resources\myFile_2019-04-18.zip

 

If I add -o pathHere/fileHere.zip the command notifications are written to this file, but the contents of the .zip file aren't put there.

 

How could I get the wget command to put the .zip file to this path?

D:/myFolder/myFile.zip


Accepted Solutions
Community Manager

Re: wget - How can I direct the file to save to a different path?

Hi talendtester

-o output the logs to log file. Try to check 'Use home directory' box and select a folder which will be the default path.

 

Regards

Shong

 

 

----------------------------------------------------------
Talend | Data Agility for Modern Business

All Replies
Community Manager

Re: wget - How can I direct the file to save to a different path?

Hi talendtester

-o output the logs to log file. Try to check 'Use home directory' box and select a folder which will be the default path.

 

Regards

Shong

 

 

----------------------------------------------------------
Talend | Data Agility for Modern Business

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog