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

[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
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

All Replies
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.
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

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

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

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

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

Here are the properties I have given
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

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

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

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

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
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
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.