Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
mra802003
Contributor III
Contributor III

tWaitForFile doesn't work as expected on UNIX

Hi,

I created a simple job using 'tWaitForFile' and 'tFileCopy'. The file watcher is set to run infinitely and iterate every 10 seconds. If matching file arrives in the directory, the file gets copied to destination directory using 'tFileCopy'. This job is working as expected on Windows. 

Upon deploying this job to UNIX env and executing the ".sh" file, the job doesn't even pick the file from the directory. The 'ps' command shows the job is running continuously as expected. Can anyone help in this regard?

 

Thanks

Labels (2)
15 Replies
mra802003
Contributor III
Contributor III
Author

Meanwhile, I was trying another approach as tinfiniteloop -> twaitforfile -> tCopyFile (on Windows)

The moment I manually copy the file in the source directory, the job fails with the following error:

0683p000009Lwah.png0683p000009LwRG.png

 

The basic setting for

1. tinfiniteloop "Wait at each iteration = 1000ms"

2. twaitforfile "Time between iterations = 1s", "Max number of iterations = 1" and "Trigger action when - a file is created". The file mask is "*.txt".

 

Any idea what would cause this error?

TRF
Champion II
Champion II

Can you share the tfilecopy configuration?
mra802003
Contributor III
Contributor III
Author

0683p000009LwgK.png

TRF
Champion II
Champion II

Well, I can't try for the moment.
What if you change the delay of tInfiniteLoop for example to 1300ms?
TRF
Champion II
Champion II

As you have introduced a tInfiniteLoop you may also replace tWaitForFile by tFileExists (if you know the name) or tFileList. You should have the expected result.
mra802003
Contributor III
Contributor III
Author

Thanks, it worked using tFileList approach.