04-03-2007 08:09 AM
Could someone help me to find a solution regarding the PATH variable in .tcshrc file.
I have to add some paths in this in order to run some scripts but there are a loot of directories when the script resides and when i write them it shows me the message below.
When i log into the system:
"word is to long"
Solved! Go to Solution.
04-03-2007 08:25 AM
04-03-2007 09:38 AM
even in tcsh you cannot raise the limit of the number of characters allowed in an environment variable. The limit (4096) at Solaris10 is high, however.
Keep in mind, that it is better in tcsh to deal with the (local) variable 'path' as array as with the environment variable PATH.
tcsh tracks the correspondence of 'path' and 'PATH' by itself automatically.
To refine Clay's suggestion - which is the only resonable solution:
1) Check if the directory exists before appending it to path:
if (-f /more/to/add/to/path) then
set path=($path /more/to/add/to/path)
2) Create aliases for entries of directories you want to put into PATH, which contain only few executables:
instead of adding /path/to/script to path, where /path/to/script/start_me is the only executable file, use
alias start_me /path/to/script/start_me
3) Check for duplicates (links!) in path:
foreach p in ($path)
if ($p == $to_add) then
if ($addme) set path=($path $to_add)
- /bin and /usr/bin are redundant entries
- contains /usr/local/bin really some files?
04-06-2007 02:15 AM
I have installed Sudo version 1.6.8p12 and have some scripts on a lot of directories. In the sudoers file i have defined them like below:
/ddd/sss/ddd/* but i have recently heard that this version doesn't work with the wildcard.
So i have to add the full path of each script in the sudoers file in order to run the scripts.
As there are a lot of them i wanted to know if exist any size limitation on the sudoers file?