Mailing List
Home
Forum Home
Linux - General Red Hat Linux discussion list
Installation - Getting started with Red Hat Linux
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
sendmail configuration on redhat
Couldn 't open PID file /var/run/named/named pid Permission denied
Promise 378 controller
kernel 2 6 and /dev/sound/mixer not found
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
Lotus Notes under Wine
/etc/security/limits conf question
Intel E/1000 driver
Command stream end of file while reading
rpm database corrupt
qla2300 modules
 
Unable to set env vars.

Unable to set env vars.

2003-03-18       - By scan

 Back
Reply:     1     2     3     4     5     6     7     8     9     10     >>  

> Thanks to all who responeded to my plea's.

btw funny question:
isn't that dos syntax
set VAR="VAL"
echo %VAR%
?
anyway; csh or whatever. I recommend to write in batch-jobs

var1=/my/path
var2="\$var1=${var1}"       # "" interpolates; escape with \
var3='var1 is stored in $var1'   # '' does not interpolate: care the \ only
var4=`date` # store timestamp in var4  # assign output of command to var

echo "$0: starts $var4"
cd ${var1}/subpath

## etc.

means : whenever need to concatinate variables, write ${VAR}
but you can always write ${VAR} instead of $VAR fore readability.

regards,

~andreas
> -- --Original Message-- --
> From: seawolf-list-admin@(protected)
> [mailto:seawolf-list-admin@(protected)]On Behalf Of Joel Massey
> Sent: Tuesday, March 18, 2003 3:17 AM
> To: seawolf-list@(protected)
> Subject: Re:Re: Unable to set env vars.
>
>
> Thanks to all who responeded to my plea's.   I got it all figured
> out now, and ignore my comments about CLASSPATH...   I had a
> space between the declaration and the "=".
>
> -- ---- -- Charles Curley <ccurley@(protected)> writes:
>
> On Mon, Mar 17, 2003 at 04:53:09PM -0600, Aaron Konstam wrote:
> > On Mon, Mar 17, 2003 at 10:32:39PM +0000, Joel Massey wrote:
> > > I can't set env vars. I have tried from a terminal in Gnome,
> I have tried from the command line, I have tried using my
> .profile file and .bash-profile file.   Anybody have any
> ideas???? I really don't want to re-install.  BTW I am using a
> fresh install of RH 7.1.
> > > (my forehead hurts from pounding my head on the keyboard,
> make it stop...)
> > I do not know what you tried to do.
> > The following will set an enviroment variable caller $DUMMY
> > DUMMY="joe"
> >  echo $DUMMY
> >  joe
>
> If you want the variable to be visible to children programs, you must
> also export it. So I would just use
>
> export DUMMY="joe"
>
> >
> > In a bash script it is a little more complicated. You need to export
> > the variable such as:
> > DUMMY="joe"
> > export $DUMMY
> >
> > - or -
> > export DUMMY="joe"
> >
> > assuming you are using a bash shell. For example, for csh shell the
> > definition would have a different syntax.
> > --
> > -- ---- ---- ---- ---- ---- ---- ---- -----
> > Aaron Konstam
> > Computer Science
> > Trinity University
> > 715 Stadium Dr.
> > San Antonio, TX 78212-7200
> >
> > telephone: (210)-999-7484
> > email:akonstam@(protected)
> >
> >
> >
> > __ ____ ____ ____ ____ ____ ____ ____ ____ ____
> > Seawolf-list mailing list
> > Seawolf-list@(protected)
> > https://listman.redhat.com/mailman/listinfo/seawolf-list
>
> --
>
> Charles Curley                  /"\    ASCII Ribbon Campaign
> Looking for fine software       \ /    Respect for open standards
> and/or writing?                  X     No HTML/RTF in email
> http://w3.trib.com/~ccurley     / \    No M$ Word docs in email
>
> Key fingerprint = CE5C 6645 A45A 64E4 94C0  809C FFF6 4C48 4ECD DFDB
>
>
>
>
>
> __ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ______
> Sign Up for Juno Platinum Internet Access Today
> Only $9.95 per month!
> Visit www.juno.com
>
>
>
> __ ____ ____ ____ ____ ____ ____ ____ ____ ____
> Seawolf-list mailing list
> Seawolf-list@(protected)
> https://listman.redhat.com/mailman/listinfo/seawolf-list
>