I have a command job on autosys that should execute a bash script to rename several files in a specific directory. My script has this:
for x in /opt/testing/fileToRename*.xls;
do mv "$x" "newName.csv";
done
When I run the script directly from the shell everything works fine, also if I take the command and run it directly from the shell it works, but when I try to run it from the command attribute of my job, this job only deletes all the files in the path but not rename the file. Just to clarify, the user I am using in the owner attribute of my job is the same I am using in the shell.
Someone can help me?