Re: Radius entry

Tres Melton (tres@chaffee.net)
Fri, 15 Aug 1997 15:34:32 -0600 (MDT)

On Fri, 15 Aug 1997, Alexander Morales wrote:

> Problem
> is the tabs dont align well and I dont know how I can get to to align
> correctly everytime. Here is the entry I added.
>
>
> function addradius()
> {
> echo "adding to radius"
> echo "$LOGIN Password = \"$PASSWORD\"" >>$RADIUS_FILE
> echo "copying file to secondary radius server"
> cp $RADIUS_FILE $SEC_RADIUS
> }
You need to use the "-e" option with echo to enable the expansion of
escaped characters and the use "\t" as the tab character. Otherwise the
shell will expand your tabs into spaces giving you that problem.

I would suggest that you rewrite your script in C to make it more
difficult for a nonpriviledged user to modify.

Tres
tres@chaffee.net

--If you think it to be idiot proof,
then you haven't met the "Latest 'n Greatest" idiot!