Hi,
Could anyone please shed some light on the following script lines and what is it doing as it was written by an ex-administrator?
cat $AMS/version|read a b verno d
DBVer=$(/usr/bin/printf "%7s" $verno)
I checked that the cat $AMS/version command returns following output:
Application Release 12.2L01 as of Fri Nov 2 22:11:46 EDT 2007
But when it is being piped through
read in the above lines, nothing is available in DBVer parameter when I output using echo $DBVer.
Also what is the purpose of $END$ as in the following code:
$AMS/bin/procmon testdb << $END$
Thanks