sh script doesn't work
From: PJ (pj0309_at_yahoo.com)
Date: 10/17/03
- Next message: Barry Margolin: "Re: sh script doesn't work"
- Previous message: Dave Millen: "Re: Newbie has Q's for the Group ...."
- Next in thread: Barry Margolin: "Re: sh script doesn't work"
- Reply: Barry Margolin: "Re: sh script doesn't work"
- Reply: Chris Mattern: "Re: sh script doesn't work"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Barry Margolin: "Re: sh script doesn't work"
- Previous message: Dave Millen: "Re: Newbie has Q's for the Group ...."
- Next in thread: Barry Margolin: "Re: sh script doesn't work"
- Reply: Barry Margolin: "Re: sh script doesn't work"
- Reply: Chris Mattern: "Re: sh script doesn't work"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|