[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 19990726: ~ldm/{version-directory}/etc



Alan,

I fixed the binary release to include the conf files. I think the problem
you are having with scriptconfig, is that it's not being run by sh but by
csh. Notice the message "running cshrc" in your output. Make sure sh is
sh.  I would got back to the original version and run it:

% sh scriptconf

If you need to make the host fully qualified, do it in the line 
"definehere" but don't make any other changes. 

Robb...

On Wed, 28 Jul 1999, Alan F Cunningham wrote:

> Robb-
> I rm'd the ldm-5.0.8 directory and reinstalled the binary from ldm.tar.Z.
> however, I still got "message garbled" errors on scriptconfig.  It could
> be that the way I modified the scriptconfig could be the cause of
> the problem.  Here is the modified version:
> 
> #!/bin/sh
> #
> # script to configure LDM scripts with:
> #     location of perl
> #     LDMHOME environment variable
> #     fully qualified hostname
> #
> # To manually configure, define variables below, ie perl="/opt/bin/perl"
> #
> perl="definehere"
> LDMHOME="definehere"
> HOST="sagth.clemson.edu"
> #
> # end of user configuration
> #
> clear
> echo Check that the following defines are correct:
> echo
> #
> if [ $perl = "definehere" ]
> then
>       perl=`which perl`
>       #echo $perl
>       `echo $perl | grep "no perl in"`
>       if [ $? = 0 ]
>       then
>               echo "No perl utility found"
>               echo edit scriptconfig to manually set the location of
> perl
>               exit 1
>       fi
> fi
> echo perl is located at: $perl
> echo
> #
> if [ $LDMHOME = "definehere" ]
> then
>       echo $HOME > /dev/null
>       if [ $? != 0 ]
>       then
>               echo 'No $HOME environment variable found, needed to set
> $LDMHOME'   
>               echo 'edit scriptconfig to manually set $LDMHOME variable'
>               exit 1
>       fi
>       LDMHOME=$HOME
> fi
> echo '$LDMHOME' " is defined as $LDMHOME"
> echo
> 
> # if [ $HOST = "definehere" ]
> # then
> #     HOST=`hostname`
> #     #echo $HOST
> #     dotindex=`echo $HOST | awk '{print index($1,".")}'`
> #     #echo $dotindex
> #     if [ $dotindex -eq 0 ]
> #     then
> #             echo "Fully qualified hostname needed, $HOST not fully
> qualified."
> #             echo 'edit scriptconfig to manually set $HOST variable'
> #             exit 1
> #     fi
> # fi
> echo fully qualified '$HOST' is defined as $HOST
> echo
> #
> echo If these defines are not correct, edit file scriptconfig to manually
> set
> echo the required variables.
> echo
> 
> #
> files=`ls *.in`
> #echo $files
> #
> for file in $files
> do
>       if [ $file = "Makefile.in" ]
>       then
>               continue
>       fi
>       fileout=`echo $file | awk '{print substr($1,1,length($1)-3)}'`
>       sed "s#@PERL@#$perl#
>               s#@LDMHOME@#$LDMHOME#
>                    s/^#.hostname/\$hostname/
>                       s#@HOSTNAME@#$HOST#" $file > $fileout
>       chmod 775 $fileout
>       echo $fileout was configured
> done
> #
> 
> I only modified the lines pertinent to the hostname, and commented out the
> if/then test for hostname, but I get the following as output:
> 
> 
> Check that the following defines are correct:
> 
> perl is located at: running cshrc /usr/local/bin/perl
> 
> $LDMHOME  is defined as /sagth2/ldm
> 
> fully qualified $HOST is defined as sagth.clemson.edu
> 
> If these defines are not correct, edit file scriptconfig to manually set
> the required variables.
> 
> sed: command garbled: s#@PERL@#running cshrc
> ldmadmin was configured
> sed: command garbled: s#@PERL@#running cshrc
> ldmcheck was configured
> sed: command garbled: s#@PERL@#running cshrc
> ldmfail was configured
> sed: command garbled: s#@PERL@#running cshrc
> ldmprods was configured
> sed: command garbled: s#@PERL@#running cshrc
> netcheck was configured
> sed: command garbled: s#@PERL@#running cshrc
> syscheck was configured
> 
> please ignore this if you are fixing this by the end of the week.
> 
> Alan Cunningham
> Clemson University Radar Ornithology Lab
> 310 Jordan Hall
> 656-3584
> hubcap.clemson.edu/~acunnin
> 

===============================================================================
Robb Kambic                                Unidata Program Center
Software Engineer III                      Univ. Corp for Atmospheric Research
address@hidden             WWW: http://www.unidata.ucar.edu/
===============================================================================