Monday Jun 19 09:13:15 +0200 2000 Robert Seidner <[EMAIL PROTECTED]> wrote:
> At 04:20 19.06.00 +0000, you wrote:
> >
> >  if [ ~`hostname` = ~6M ];then;NM=tomsrtbt;else;NM=`hostname`-tomsrtbt;fi
> >
> 
> It works, if you remove 2 semicolons:
> 
> if [ ~`hostname` = ~6M ];then NM=tomsrtbt;else NM=`hostname`-tomsrtbt;fi

That was a good observation...

another possibility:

[ ~`hostname` = ~6M ] && NM=tomsrtbt || NM=`hostname`-tomsrtbt

This maybe looks a bit cleaner (if anybody cares anyway).

> 
> 
> Robert
> 

Tomi

Reply via email to