Hi,
Yes, sure you can run tcsh script in csh script. Just make sure "tcsh" script is "executable" OR you can use following statment to run "nonexecutable" script:
#! /bin/csh -f
tcsh /proc/bin/setproj #tcsh script file
cd my_proj
setenv ROOT_PATH `pwd`
source $ROOT_PATH/my_tools/proj.env
It is working.
There is no error has been generated.
The problem is after it executed setproj script, it didnt execute the next statement in main script. Until i typed exit.
main script:
Code:
#! /bin/csh -f
tcsh /proc/bin/setproj -p myproj -cfg U2 #tcsh script file
cd my_proj_path #it will execute if I type 'exit'
setenv ROOT_PATH `pwd`
source $ROOT_PATH/my_tools/proj.env
Hi,
I see. It looks like the perl script is waiting for some STD INPUT
Pay attention that you try to evaluate the perl script result. I suppose that process would like user to type something, to say another words it wait for response from input stream STDIN. Debug this part of code to be sure that nothing needed to suspend the execution on script.
To do more correct advice provide me "echo $cmd" result.