[resolved] How to use twaitforfile component for files on server

Highlighted

[resolved] How to use twaitforfile component for files on server

Is it possible to use twaitforfile component if the files are in linux server

Accepted Solutions
Highlighted
Four Stars

Re: [resolved] How to use twaitforfile component for files on server

Hi,
I have one more design...
-- Schedule a job every day with optimum frequency
-- Once the job is execute, record the timestamp, size of the file you processed
-- At the next execution compare it with your earlier records and if different load it again else end the job...
-- This way you will be able to provide proof for your data update and reading..
Thanks
Vaibhav

View solution in original post


All Replies
Highlighted
Moderator

Re: [resolved] How to use twaitforfile component for files on server

Hi,
Is there any more inforamtion about your requirment? Do you mean a file is located in Linux, but studio in Window?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Highlighted
Four Stars

Re: [resolved] How to use twaitforfile component for files on server

Hi,
Components are independent of the OS, but the properties may be dependent on OS...
https://help.talend.com/search/all?query=tWaitForFile&content-lang=en...
Change the path for the location which matches with your unix system, the job should work.
Thanks
Vaibhav
Highlighted

Re: [resolved] How to use twaitforfile component for files on server

Thanks sanvaibhav
@sabrina -Yes TOS on windows and files on linux server
Highlighted

Re: [resolved] How to use twaitforfile component for files on server

Here My requirement is
My file gets updated thrice in a week randomly ..
for this scenario how I have to give properties in waitforfile component
Highlighted

Re: [resolved] How to use twaitforfile component for files on server

Here are the properties I have given
Highlighted
Seventeen Stars

Re: [resolved] How to use twaitforfile component for files on server

hi,
are you running Talend job from your Studio(windows) to trigger some modifications on a remote linux server !??
regards
laurent
Highlighted

Re: [resolved] How to use twaitforfile component for files on server

No
I'm executing it on server itself by exporting the job
Highlighted

Re: [resolved] How to use twaitforfile component for files on server

Please check the properties
I need to check once in three days whether it is updated or not
Highlighted
Seventeen Stars

Re: [resolved] How to use twaitforfile component for files on server

I see nothing wrong in your your tWaitforfile !
what's happen (or not happen) when you run the job in Linux?
regards
Highlighted

Re: [resolved] How to use twaitforfile component for files on server

I need to schedule that job
But am not getting how to schedule
when i executed its still running on command prompt ...but I need to execute it background like with cron tab
what is the interval i have to give
I had given continuous loop
Highlighted
Four Stars

Re: [resolved] How to use twaitforfile component for files on server

Hi,
I have one more design...
-- Schedule a job every day with optimum frequency
-- Once the job is execute, record the timestamp, size of the file you processed
-- At the next execution compare it with your earlier records and if different load it again else end the job...
-- This way you will be able to provide proof for your data update and reading..
Thanks
Vaibhav

View solution in original post

Highlighted
Seventeen Stars

Re: [resolved] How to use twaitforfile component for files on server

you don't have to schedule that Talend job as it's triggered (waiting for an event).
or perhaps you want to stop it after some tentatives or for an ending period. Use option in that case.

2019 GARTNER 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

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