Environment vars calling programs

Jeffrey Pyne jpyne@worldatwork.org
Mon, 30 Oct 2000 10:44:12 -0700


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: plug-discuss@lists.PLUG.phoenix.az.us
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  -  Plug-discuss@lists.PLUG.phoenix.az.us
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss