Re: Off Topic: Unix shell script problem - Urgent advise needed

2001-04-26 Thread Viraj Luthra
Hello, Thanks for some lead. Sorry the script is executed like this:- . prgnrc.sh in the case of sh and bash. This line gets writen in the .profile, so when you login to the envt. then it reads the last line in .profile, which reads as:- . /home/supp/testinst/prgnrc.sh which contains the

Re: Off Topic: Unix shell script problem - Urgent advise needed

2001-04-26 Thread Rocky Welch
Hi Viraj, It looks to me like your clearing the value of $SHLIB_PATH (unset SHLIB_PATH) then using $SHLIB_PATH to set the value of SHLIB_PATH. Since it is empty to begin with the value will be null. In a shell script if you run it from a user's current shell (in your case by executing tst) the sc

Off Topic: Unix shell script problem - Urgent advise needed

2001-04-26 Thread Viraj Luthra
Hello all, Ihave the following script, called as tst. When the script is executed as, tst, then every thing is okay, but when it is executed as . tst, then I get the error:- sh: SHLIB_PATH: Parameter not set. I need to use the following format that is . .profile, as in above case as . tst