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?
Solved! Go to Solution.
There are no permission issues on either the folder and files. I am placing the file manually in the source directory and then expecting this job to do the rest.
I created another job without 'tWaitForFile' component to make sure there's no permission issue. The file gets copied into the target directory successfully.
Is this something to do with Open Studio Vs Enterprise edition? I read somewhere over web that trigger functionality is available only in Enterprise edition.
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:
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?