pankajpanjwani
Technical User
Hi,
I am trying to set some environment variable in my paren shell which are available in a file.
file : test.csh
.....................
source someFilePath/someFile
setenv NEW2 NEW2
...................
test.csh has executable permission, and I am running it on csh.
When I try to execute this file, it gives me a message saying "source: not found" and "setenv: not found"
which means that it is trying to invoke a bourne shell for executing this script.
my attributes in /etc/passwd show that my default shell is /bin/csh.
What I want is that to simply execute the commands and set these variables in parent shell without invoking a new child shell (for which I can use #!/bin/csh)
If you have any clue whats happening here, please let me know, as this is also disturbing me in executing some c-shell functions through tcl, perl & cron scripts.
thanks in anticipation
Pankaj
I am trying to set some environment variable in my paren shell which are available in a file.
file : test.csh
.....................
source someFilePath/someFile
setenv NEW2 NEW2
...................
test.csh has executable permission, and I am running it on csh.
When I try to execute this file, it gives me a message saying "source: not found" and "setenv: not found"
which means that it is trying to invoke a bourne shell for executing this script.
my attributes in /etc/passwd show that my default shell is /bin/csh.
What I want is that to simply execute the commands and set these variables in parent shell without invoking a new child shell (for which I can use #!/bin/csh)
If you have any clue whats happening here, please let me know, as this is also disturbing me in executing some c-shell functions through tcl, perl & cron scripts.
thanks in anticipation
Pankaj