environment variables
Hi,
I am new to linux and I have the following problem :
I am trying to set the environment variable HOST by typing the following in the command line :
export HOST = `hostname`
It is setting the variable correctly. When I say
echo $HOST
it gives the correct value.
But when I execute the same in a shell script, it does not work.
My shell script is
#!/bin/ksh
export HOST = `hostname`
I even tried without the #!/bin/ksh, but it does not make a difference.
Could somebody please shed some light on this problem?
Thanks in advance.
|