Database Install/Upgrade/Opatch (MOSC)

MOSC Banner

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"

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center