LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   setenv PATH in TCSH (https://www.linuxquestions.org/questions/linux-newbie-8/setenv-path-in-tcsh-4175439892/)

B Akshay 12-03-2012 11:18 PM

setenv PATH in TCSH
 
Hello all,
I am trying to set path in TCSH shell as,

setenv PATH=$PATH:./
But getting an error with respect to "./"

The reason to do so is, the csh script is called from a perl script.
when a perl script is called from a config file(custom), the csh script is getting executed but When the batch file is called independentlr then this csh script is not getting executed.
** The config file only contains the path of the files from where the scripts and processing files are taken. I have debugged that the perl file is working properly in both situation. Only the csh script is not getting executed when the perl script is called independently.

Expecting suggestions on the same....


Regards,
Akshay

pan64 12-04-2012 12:31 AM

setenv PATH $PATH':'./
will work


All times are GMT -5. The time now is 07:21 AM.