[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] A bash question
- Subject: [ale] A bash question
- From: timtw at earthlink.net (Tim Watts)
- Date: Wed, 16 Sep 2009 18:50:37 -0400
- In-reply-to: <[email protected]>
- References: <[email protected]>
The 2nd is more typical form. The 1st doesn't really work.
What about using a symlink to one dir or the other?
On Wednesday 16 September 2009 6:06:53 pm Chuck Payne wrote:
> Guys,
>
> Sorry I am still a bit of NOOD on programmer and scripting. I have
> several boxes but a couple aren't SUSE, so iptables in not in
> /usr/sbin/iptables, I like to set up a VAR called $IPT can I do this,
> it a bash script...
>
> IPT=" if [ -e /sbin/iptables ] ; then
> /usr/sbin/iptables
> "
> Or
>
> if [ -e /sbin/iptables ] ; then
> IPT="/sbin/iptables"
> else
> IPT="/usr/sbin/iptables"
> fi
>
>
> I am looking for best practise. Thanks.
--
If I were two-faced, would I be wearing this one?
-- Abraham Lincoln