Hostname changes and the shell prompt...
    Ben Beeson 
    beesond001 at hawaii.rr.com
       
    Thu Oct  5 22:09:31 PDT 2000
    
    
  
Dean and Mike,
	OK, I tried the suggestion to replace \h with $(hostname).  This change
is essentially the same as the long hostname option \H for the bash shell. That
change works as advertised.  I guess what I needed to say initially is that it
appears that the hostname variable is not getting updated when I get
renumbered.  That's what I need to fix, and I can't figure it out.  
Mike,
	Maybe I confused you when I said the hostname gets nuked.  Perhaps it
is best to explain by an example.  Suppose I have set the hostname to
"FourFans" when I boot the box, then dhcp gets me an IP address.   Now the
hostname changes to <some IP address at hawaii.rr.com>.  Suddenly, the original
hostname has been "nuked."  
Thanks again in advance ,
Ben 
On Thu, 05 Oct 2000, you wrote:
> Isn't that a lot just to get the correct information
> into a shell prompt? I think the problem is not that
> the host name is getting "nuked", but that when the
> host name changes, it isn't being updated. I suggested
> changing ``\u'' to ``$(hostname)''. I'm pretty sure
> that will work.
> 
> --- "Mr.Mike." <paix at konaboy.com> wrote:
> > 
> > why not make a cronjob that sources your
> > /etc/profile or ~/.profile or
> > .bash_profile of course when in X it can be a little
> > tricky making sure
> > your getting a login shell uh versus an interactive
> > one, if you follow.
> > 
> > on debian 
> > 
> > crontab -e  
> > 
> > /5 * * * * source /etc/profile 
> > 
> > 
> > 
> > :wq 
> > 
> > ??
> > 
> > i didn't really pick thru your PS1 but seems to me
> > your hostname should
> > not be getting "nuked". anyway
> #snip#
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free!
> http://photos.yahoo.com/
> 
> ---
> You are currently subscribed to luau as: beesond001 at hawaii.rr.com
> To unsubscribe send a blank email to $subst('Email.Unsub')
    
    
More information about the LUAU
mailing list