LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-03-2012, 11:18 PM   #1
B Akshay
Member
 
Registered: Sep 2012
Posts: 39

Rep: Reputation: Disabled
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

Last edited by B Akshay; 12-03-2012 at 11:33 PM.
 
Old 12-04-2012, 12:31 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,189

Rep: Reputation: 2673Reputation: 2673Reputation: 2673Reputation: 2673Reputation: 2673Reputation: 2673Reputation: 2673Reputation: 2673Reputation: 2673Reputation: 2673Reputation: 2673
setenv PATH $PATH':'./
will work
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] tcsh - strange problem with path lucmove Programming 5 07-08-2010 07:29 PM
Apache webserve SetEnv PATH??? KirkD Linux - Server 5 12-03-2009 01:51 AM
NASA Newbie - /bin/tcsh User ported to Linux - How to set PATH wstaylor711 Linux - Newbie 7 10-30-2008 02:05 PM
Setenv IBP Linux - Software 3 12-20-2002 09:05 AM
setenv ???? toxic53 Linux - Networking 1 09-26-2001 11:30 AM


All times are GMT -5. The time now is 10:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration