Trying to run a small simple script to pull the java -version information from an AIX system's several java64 folders piped into an output/log file using the system's hostname but can't seem to get it to work.## Start Script#date > ./${HOSTNAME}_GetJava.txtecho ------ Java v1.4 Information ------ >> ./${HOSTNAME}_GetJava.txt/usr/java14_64/bin/java -version 2 >> ./${$HOSTNAME}_GetJava.txtecho ------ Java v5 Information ------ >> ./${HOSTNAME}_GetJava.txt/usr/java5_64/bin/java -version 2 >> ./${HOSTNAME}_GetJava.txtecho ------ Java v6 Information ------ >> ./${HOSTNAME}_GetJava.txt/usr/java6_64/bin/java -version 2 >> ./${HOSTNAME}_GetJava.txtecho ------ Java v7 Information ------ >> ./${HOSTNAME}_GetJava.txt/usr/java7_64/bin/java -version 2 >> ./${HOSTNAME}_GetJava.txt## End Script# *
Where is my .sh script syntax error(s)?
scripting;aix;variable