Environment vars calling programs

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Jason
Date:  
Subject: Environment vars calling programs
Don Harrop wrote:
>
> Ok, here's the first HP-UX question. I want to setup the HOSTNAME var to
> function like it does under Linux. If I set HOSTNAME='/bin/hostname' and
> echo $HOSTNAME I get '/bin/hostname' printed back, not the hostname of the
> machine.. Any ideas?


The quotes arent pointing the right way?

use `command` instead of 'command' 
-- 
jkenner @ mindspring . com__
I Support Linux:           _> _  _ |_  _  _     _|
Working Together To       <__(_||_)| )| `(_|(_)(_|
To Build A Better Future.       |                   <s>