I have a requirement to check whether a specific file exists or not.
I used Execute Command Activity to call a script.
However I dono what mistake I have made, the script is not executing.
Getting below warning
Error: JobControl(@Execute_Command_0):Command /xyz/exist.sh did not finish OK, reply '1'
Script:
Code: Select all
#!/bin/sh
file="xyz/abc/mv.sh"
if [-f "$file"]
then
echo "$file exist"
else
echo "$file does not exist"
fi
Can any one help me with the issue???
Thanking you in advance