Author Login
Post Reply
On Jan 22, 2008 6:44 AM, Ravi Shanmugam <ravi.shanmugam@(protected):
> 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[@(protected)
> 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
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@(protected)
> https://www.redhat.com/mailman/listinfo/redhat-list
>
it is good form to give the absolute path of the commands that your are
calling or to explicitly set your PATH in scripts.
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@(protected)
https://www.redhat.com/mailman/listinfo/redhat-list