calling c shell from bash
Hello all,
I have several questions related to C and Bash shells, especially related to running scripts from combination of these two shells.
1) I would like to know how Linux executes a csh script when called from bash shell. Does it create a sub-shell in C and then run the script?
2) If I have environment variables in by Bash shell that are required by the Csh script then how these can be made visible when Csh script is executed?
3) Similar to question 2) above, if I have environment variables in C shell then would those be visible when C shell script executes?
4) The start-up profiles that are present in CSH or BASH shells, are these run only when a new login is done. Is it possible to get these set-up scripts to run just before a script is executed?
Sorry for so many questions but when I am trying to run certain scripts that are in one shell but I am having to use another shell to run from, I am having several basic questions. Earlier, I have always used CSH scripts but never called them from C shell.
|