script to check if a file is there then do something with it
A concurrent request that runs every 5 minutes.
It checks for an xml file, if the file is there, then move it, if it is not there, exit until the next run.
It uses a script on the file system. There are two files an *.xml file and an *.ack file. If both files are there then it should move the xml file. If both files are not there it should not do anything.
Here is the working part of the script. It needs to check for both files not just 'a file'.
if [ "$(ls -A $lclDirOut/*.*)" ]; then
echo "Files found in $lclDirOut"