Environment vars calling programs

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: JeffreyPynejpyne@worldatwork.org
Date:  
Subject: Environment vars calling programs
Try using backticks instead of single quotes (i.e.
HOSTNAME=`/bin/hostname`).

-----Original Message-----
From: Don Harrop [mailto:don@nis4u.com]
Sent: Monday, October 30, 2000 10:28 AM
To:
Subject: Environment vars calling programs


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?

Don


________________________________________________
See http://PLUG.phoenix.az.us/navigator-mail.shtml if your mail doesn't post
to the list quickly and you use Netscape to write mail.

Plug-discuss mailing list -
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss