Below script runs fine on all Servers in my infrastructure.
However, I recently discovered that it fails to complete execution and simply hangs on Aix servers with
cat myscript.sh export LOG="./test.log" echo "Starting" exec >$LOG 2>&1 echo "Completed"
Below is how i have run this script
user1@myhost# . /app/myscript.sh Output: Starting <hangs here>
I want this script to run on on different types on OS like AiX, Solaris and Linux.
Note: This script is placed and executed from a remote server that we use for automation. The script hangs when executed remotely using ssh as well as when executed locally as shown above.
Can you propose a generic solution please?