Search Results

Search: Posts Made By: jake_ryan
3,038
Posted By jake_ryan
I am afraid I didnt get that.. My script is...
I am afraid I didnt get that..
My script is using /bin/sh interpreter and is trying to change .cshrc with the following env vars:
set MY_TOOLBOX=/usr/bin/ttx
set TCL_LIBRARY=${MY_TOOLBOX}/lib...
3,038
Posted By jake_ryan
I am sorry.. I didnt get that.. My script...
I am sorry.. I didnt get that..
My script using /bin/sh interpreter and is adding env vars in .cshrc
So, set VARNAME=something is valid.. Please correct me if I am wrong..

My question is when I...
3,038
Posted By jake_ryan
I am trying to change cshrc because csh is the...
I am trying to change cshrc because csh is the default shell. However, my script uses /bin/sh

This my script:
#!/bin/sh
if [ -f /etc/csh.cshrc ]; then
cat /etc/csh.cshrc > /etc/tmp_cshrc...
3,038
Posted By jake_ryan
I tried, but it doesnot like the "(" for path. ...
I tried, but it doesnot like the "(" for path.

cshrc is as follows after modifying:
set MY_TOOLBOX=/usr/bin/ttx
set TCL_LIBRARY=${MY_TOOLBOX}/lib
set LD_LIBRARY_PATH=${MY_TOOLBOX}/lib
set...
3,038
Posted By jake_ryan
forcing modified env vars to be effective
Hi
I have a /bin/sh script, that when executed changes some env vars (like $path).
How can I source the modified cshrc?

I dont want to logout and login to have the modifed path.

sh doesnot...
7,404
Posted By jake_ryan
Thanks JerryHone... for clearing the puzzle....
Thanks JerryHone... for clearing the puzzle. Appreciate it.
7,404
Posted By jake_ryan
Hi JerryHone, thanks for the reply. I...
Hi JerryHone, thanks for the reply.

I thought by doing `set $$RESULT`, I would get the number of words returned by ext_tools.sh by using $$#.. Am I wrong?

The redirection to tMp was because...
7,404
Posted By jake_ryan
$$# is evaluating to 1 when no value
I have the following in my makefile:
RESULT=`../${TOOLS_ROOT_PATH}/ext_tools.sh 11`; \
set $$RESULT > tMp; \
rm tMp; \
if [ $$# -ne 0 ]; then \
echo copying...
12,546
Posted By jake_ryan
After trying couple of things, this is my...
After trying couple of things, this is my problem:

set -x; \
ARESULT=`../${TOOLS_ROOT_PATH}/ext_tools.sh 1`; \
echo $ARESULT; \

When I do gmake, I see the following:
+...
12,546
Posted By jake_ryan
How to check for null value from makefile
My makefile has some code as follows:

if [ `../${TOOLS_ROOT_PATH}/ext_tools.sh 1` ]; then \
echo copying tools; \
cp -f `../${TOOLS_ROOT_PATH}/ext_tools.sh 1` ${EXTERNAL_BIN_DIR} ||...
Showing results 1 to 10 of 10

 
All times are GMT -4. The time now is 07:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy