1

My script work on Linux but not work in sunos.

view story
linux-howto

http://www.unix.com – My script work on Linux but not work in sun os. my script. Code: logFiles="sentLog1.log sentLog2.log" intial_time="0 0" logLocation="/usr/local/tomcat/logs/" sleepTime=600 failMessage=":: $(tput bold)Log not update$(tput rmso) = " successMessage="OK" arr=($logFiles) time_arr=($intial_time) arrlen=${#arr[@]} arrcount=() date for count=0; count<arrlen; count++ ; do     arrcount[$count]=`ls -l  $logLocation${arr[$count]}  |awk '{print $5}'`     echo "${arr[$count]} Original size :: ${arrcount[$cou (HowTos)