Arochester,
Thanks for your reply.
The actual code in the script(/dev/bin/load.sh) is…
echo $OUTPUT > $TMPFILE
However, the developer forgot to assign a value to the variable $TMPFILE. It's not initialized/defined in the script and it's not even an environment variable. I printed the value of $TMPFILE in the log files to confirm that the environment is not setting the value to this variable. I am sure that the developer used the $TMPFILE without defining it anywhere in the OS.
The same mistake was done in several scripts years back and all are running fine. Now after building a dev instance by cloning the prod instance this line is causing the issues.
If we modify the code like this…
$TMPFILE = /tmp/load.log
echo $OUTPUT > $TMPFILE
Then the scripts are working fine.
Though code change can fix the issue, I guess there is some Linux setting which we are missing in the cloned dev environment. But, no one has any clue on what Linux setting needs to be set to fix this issue.