LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices



Reply
 
Search this Thread
Old 03-18-2010, 06:50 AM   #1
ajeet@linux
LQ Newbie
 
Registered: Mar 2010
Posts: 11

Rep: Reputation: 0
Question Adding a executable file $PATH Variable


Hello Linux Guru's

I am having a problem in adding a executable file to $PATH and getting it worked.

I am adding an executable file to ~/bin directory from my shell script.Now,from my understanding it should be available for execution,outside of the subshell.
But,after running shell script,I am unable to execute that command,until i issue rehash command to rebuild it's hash table.I am using tcsh.
My Requirement is that,Just after running my script,command should be available for execution,without execution of any extra command.I am using Solaris and tcsh.

Please provide any working solution, because of this i am stuck in my project.
 
Old 03-18-2010, 07:20 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,523

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
Your requirements are not compatible with tcsh. Tcsh doesn't update its path contents cache until the rehash command is issued. That's by design.
 
Old 03-18-2010, 08:19 AM   #3
ajeet@linux
LQ Newbie
 
Registered: Mar 2010
Posts: 11

Original Poster
Rep: Reputation: 0
@jlliagre: So,can it be achieved by other means??
 
Old 03-18-2010, 01:30 PM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,523

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
Sure, use a different shell that isn't broken by design, like ksh or bash or modify the tcsh code to suit your needs.
 
  


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
executable file: Which path will go from _start to main function valpa Programming 1 09-04-2008 09:08 PM
Executable file path problem jinics Linux - General 5 02-22-2007 07:51 AM
What file that has the $PATH variable? hus Linux - General 2 08-06-2006 08:35 AM
PATH variable file pongsu Linux - General 2 09-25-2003 05:13 AM
Adding JavaVM to PATH variable? Crickit Linux - Software 3 05-06-2003 04:06 PM


All times are GMT -5. The time now is 10:23 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration