[ale] A bash question

Tim Watts timtw at earthlink.net
Wed Sep 16 18:50:37 EDT 2009


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



More information about the Ale mailing list