diff command doesnt work
Ravi Shanmugam
ravi.shanmugam at sasken.com
Tue Jan 22 11:44:06 UTC 2008
Hi All,
In the following code given below, after the diff command, none of the
code is executed. "Hello1" is displayed on the screen and "logger -t
Hello Started" is displayed in /var/log/messages. But after the diff
command, echoing of filearray and "Hello2" is not displayed.
#---------------------------------------
logger -t hardening Started
echo "Hello1"
logger -t Hello Started
diff /etc/lib/mgmtlist /usr/lib/mgmtlist > /tmp/difflist
filearray=( `cat /tmp/difflist | tr '\n' ' '`)
for (( i = 0; i < ${#filearray[@]} ; i++)); do
echo ${filearray[$i]}
done
echo "Hello2"
#------------------------------------
Could someone please help.
Regds,
RSR
SASKEN BUSINESS DISCLAIMER
-------------------------
This message may contain confidential, proprietary or legally privileged information. In
case you are not the original intended Recipient of the message, you must not, directly or
indirectly, use, Disclose, distribute, print, or copy any part of this message and you are
requested to delete it and inform the sender. Any views expressed in this message are
those of the individual sender unless otherwise stated. Nothing contained in this message
shall be construed as an offer or acceptance of any offer by Sasken Communication
Technologies Limited ("Sasken") unless sent with that express intent and with due
authority of Sasken. Sasken has taken enough precautions to prevent the spread of
viruses. However the company accepts no liability for any damage caused by any virus
transmitted by this email
More information about the redhat-list
mailing list