sh script doesn't work

From: PJ (pj0309_at_yahoo.com)
Date: 10/17/03


Date: Fri, 17 Oct 2003 17:42:48 +0200

Hi everyone,

I am using RedHat 9, and trying to install WAS APP server.
Now I have pretty much stupid problem but it gives me hard time so far.
I have a sh script which sets environment variables for installation of
WAS. When I run this script nothings happened at all.

After some researching, I edit this script to be very simple and has only
two lines just to see if it would work but also there is no result.
Here is a my script testing.sh:

#!/bin/sh
export WAS_HOME=/opt/WebSphere

I did chmod 777, owner is a root and I execute this script as root user !

After I execute this script and run command

>env

 don't see environment variable WAS_HOME at all.
If I execute command from command line :

>export WAS_HOME=/opt/WebSphere

I get environment as I want. My conclusion: something is wrong either with
script either with shell. I am using BASH shell but I did try also with
ksh...I installed every shell RedHat has on CD's - same result!

Since I am newbie in Linux and also in shell scripting desperately need
help...

PJ



Relevant Pages

  • Re: Deploying Office 07 with Group Policy
    ... computer I tested it on took 30 minutes to install. ... the following script to the Computer Startup Script. ... REM Get ProductName from the Office product's core Setup.xml file. ... REM Set ConfigFile to the configuration file to be used for deployment REM ...
    (microsoft.public.office.setup)
  • Re: installing Maple 7 under Woody
    ... default shell I guess on linux is bash. ... just post the code of shell script. ... I need to install Waterloo Maple 7on my ...
    (Debian-User)
  • Re: [opensuse] Editting PATH variable
    ... SuSEconfig script ... ... not knowing what you options you used to install ... If your unfamiliar with Bash a good book is 'Learning the Bash Shell' by ... For Java use editing the PATH variable is NOT required... ...
    (SuSE)
  • Re: KB911280 update problem
    ... Microsoft is working on an amended patch which will address this issue. ... Microsoft advises anyone affected by this to not install the patch and to ... That script is broken by the patch. ... He said he could not write a bug report ...
    (microsoft.public.windowsupdate)
  • help with a home network jumpstart
    ... I have the blade running BIND 8 to serve DNS to the home network. ... Here's the output of the boot net - install: ... Using RPC Bootparams for network configuration information. ... Using begin script: install_begin ...
    (SunManagers)