- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: $PATH variable" word is to long"
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2007 08:09 AM
тАО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"
%
Thanks
Endrin
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2007 08:25 AM
тАО04-03-2007 08:25 AM
Re: $PATH variable" word is to long"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2007 09:38 AM
тАО04-03-2007 09:38 AM
Solutioneven 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)
endif
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:
set addme=1
set to_add=/path/of/new/to/add
foreach p in ($path)
if ($p == $to_add) then
set addme=0
breaksw
endif
end
if ($addme) set path=($path $to_add)
- /bin and /usr/bin are redundant entries
- contains /usr/local/bin really some files?
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-06-2007 02:15 AM
тАО04-06-2007 02:15 AM
Re: $PATH variable" word is to long"
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?
- Tags:
- sudo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-07-2007 12:06 AM
тАО05-07-2007 12:06 AM