- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Warning: Ridiculously long path truncated
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
Forums
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
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
тАО09-19-2001 11:46 PM
тАО09-19-2001 11:46 PM
* When I login to "station1", I get above error messg.
* When I login to ALL other Workstations, NO PROBLEM.
* I "echo $path" & compared "station1" output with that of 3 other stations. NO DIFFERENCE.
* "wc -l" against output of "$path" says "1407". Same for the other 3 stations.
Questions :
* How can I resolve error on "station1" ?
Note that no problem on other stations.
* What is the MAX Length for "path" variable ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-19-2001 11:49 PM
тАО09-19-2001 11:49 PM
Re: Warning: Ridiculously long path truncated
"wc -c" results in 1407.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2001 12:21 AM
тАО09-20-2001 12:21 AM
Re: Warning: Ridiculously long path truncated
What is your error mesg ?
Exactly what problem are you facing ?
I did a
# man path
No manual entry for path.
:(
I think there is no limit for the path length
but it will depend on the number of character you can type in in one continuous single line while setting path on shell prompt.
Good luck
Animesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2001 12:29 AM
тАО09-20-2001 12:29 AM
Re: Warning: Ridiculously long path truncated
-Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2001 12:36 AM
тАО09-20-2001 12:36 AM
Re: Warning: Ridiculously long path truncated
I have checked. There is no "." settings in my path.
NOTE : "wc -c" against $path shows exactly same figure for "station1" & 3 other stations.
But only "station1" gets the error messg.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2001 12:43 AM
тАО09-20-2001 12:43 AM
Re: Warning: Ridiculously long path truncated
this appears to be an error within the login profiles. The profiles seem to execute may be additional scripts, that set path to other values. Since this fails, the path is not set as "wanted" and remains as you see it at the end, so you see no diffrence, because it is not changed.
May be you need to track down where it occurs.
Put some echo statements into /etc/login, $HOME/.login, $HOME/.cshrc at various places to see how the path changes throughout the login process.
Best guess: You merged some lines in one of these scripts, so the intended statement was destroyed.
Good hunting
Volker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2001 12:44 AM
тАО09-20-2001 12:44 AM
Re: Warning: Ridiculously long path truncated
Also just because wc -l matches up, doesn't mean much...do the actual entried in the path for both machine also match up?
-Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2001 12:49 AM
тАО09-20-2001 12:49 AM
Re: Warning: Ridiculously long path truncated
How is your PATH being set in your .cshrc? It sounds like it's getting re-extended, so you may need to put a check in, e.g.
if ($?PATHDONE == 0) set path = ($path ~/bin)
setenv PATHDONE
If it's only happening on one server, have you a separate id for this machine, or is it sourcing something locally?
Rgds, Robin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2001 01:33 AM
тАО09-20-2001 01:33 AM
Re: Warning: Ridiculously long path truncated
* I "echo $path > path.tmp" for "station1" and 3 other stations. Then, did a "diff" for them. NO DIFFERENCE. "wc -c" also showed NO difference.
NOTE : If I were to add more paths to my $HOME/.login, the path will be truncated on "station1", but NOT on other stations.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2001 01:35 AM
тАО09-20-2001 01:35 AM
Re: Warning: Ridiculously long path truncated
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2001 01:47 AM
тАО09-20-2001 01:47 AM
Re: Warning: Ridiculously long path truncated
Perhaps it is temporarily "too long" and is then being reset by your ~.cshrc or ~/.login
Does your /etc/csh.login show a difference from other servers? This is the system wide login script for csh.
Can you put an echo statement at the beginning and end of your .cshrc and .login to see at what point the error message is being output.
Rgds, Robin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2001 03:58 AM
тАО09-20-2001 03:58 AM
Re: Warning: Ridiculously long path truncated
* I attached the EXACT $HOME/.login I used.
* The error messg appears only AFTER Line-22.
In summary, I have already verified & ensured the following :
* Problem exists only on "station1".
* No "." (current dir) in my path settings.
* No repeated entries in my path settings.
* Copied "/etc/csh.login" to all other Workstations.
* All Users' $HOME/.login & $HOME/.cshrc & $HOME/.dtprofile
are EXACT Copy of each other.
* The problem occurs for ALL Users on "station1".
But does NOT occur on all other Workstations.
NOTE :
* "All other Workstations" refer to 3 other stations used for testing.
* "All Users" refer to 3 UserIDs that I used for testing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2001 03:59 AM
тАО09-20-2001 03:59 AM
Re: Warning: Ridiculously long path truncated
* I attached the EXACT $HOME/.login I used.
* The error messg appears only AFTER Line-22.
In summary, I have already verified & ensured the following :
* Problem exists only on "station1".
* No "." (current dir) in my path settings.
* No repeated entries in my path settings.
* Copied "/etc/csh.login" to all other Workstations.
* All Users' $HOME/.login & $HOME/.cshrc & $HOME/.dtprofile
are EXACT Copy of each other.
* The problem occurs for ALL Users on "station1".
But does NOT occur on all other Workstations.
NOTE :
* "All other Workstations" refer to 3 other stations used for testing.
* "All Users" refer to 3 UserIDs that I used for testing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2001 04:05 AM
тАО09-20-2001 04:05 AM
Re: Warning: Ridiculously long path truncated
* For the attached $HOME/.login, although the warning messg appears, the path is NOT truncated at all in "station1".
* If I am to ADD more paths to the attached $HOME/.login, the Final path will be truncated on "station1", but is O.K. on all other Workstations.
* I have verified that on all other Workstations, I can ADD in 2-times more additional paths without problems.
* I have also verified that the physical path for Line-22 EXISTS !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2001 04:08 AM
тАО09-20-2001 04:08 AM
Re: Warning: Ridiculously long path truncated
-Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2001 04:09 AM
тАО09-20-2001 04:09 AM
Re: Warning: Ridiculously long path truncated
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2001 04:12 AM
тАО09-20-2001 04:12 AM
Re: Warning: Ridiculously long path truncated
* I have "echo $path" before $HOME/.login gets executed.
* It is EXACTLY the same for ALL stations including "station1".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2001 04:21 AM
тАО09-20-2001 04:21 AM
Re: Warning: Ridiculously long path truncated
OK, just kidding.....
I am not sure, but this seems to be a problem with memory. Do you have the same OS-Release / csh-patchlevel on all machines. I do not know if there is a specific kernelparameter restricting the size of environment variables, but I would compare /stand/system on two boxes to see if there are major diffrences.
Not real help at all.
Volker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2001 04:55 AM
тАО09-20-2001 04:55 AM
Re: Warning: Ridiculously long path truncated
The limit is being reached on the environment variable "$PATH", not the shell variable "$path". This is defined in /usr/include/limits.h (default 1023). Check this file on all your machines.
echo $PATH | wc -c =1023
echo $path | wc -c =1407
Are all your machines running the same os/patch levels?
Rgds, Robin
Rgds, Robin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2001 06:51 PM
тАО09-20-2001 06:51 PM
Re: Warning: Ridiculously long path truncated
==> Result: NO DIFFERENCE
* /usr/include/limits.h current settings :
_POSIX_PATH_MAX 255
PATH_MAX 1023
* I have increased "PATH_MAX" to 2000 on "station1" ==> result: SAME ERROR
* The patch level on "station1" is different from the other Workstations. This is due to Hard-Disk Space Constraints. More programs are installed on "station1".
* The O.S on "station1" is SAME as the rest. HP-UX 10.2
* NOTE : The login scrits "/etc/csh.login" & "/etc/PATH" & $HOME/.login & $HOME/.cshrc & $HOME/.dtprofile are EXACTLY the SAME for all Uesrs & ALL Workstations in our setup.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2001 07:36 PM
тАО09-20-2001 07:36 PM
Re: Warning: Ridiculously long path truncated
Have you checked these files too,
/etc/login
/etc/profile
/etc/cshrc
Good luck,
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2001 07:49 PM
тАО09-20-2001 07:49 PM
SolutionDo you have patch PHCO_19434 on the system. If you don't have a look at this thread. Might solve your problem. This is the csh patch for UX 10.20.
http://us-support2.external.hp.com/wpsl/bin/doc.pl/screen=wpslDisplayPatch/sid=7e93965016280b073e?PATCH_PATH=/hp-ux_patches/s700_800/10.X/PHCO_19434&HW=s800&OS=10.20
Hope this helps.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2001 10:08 PM
тАО09-20-2001 10:08 PM
Re: Warning: Ridiculously long path truncated
Thanks, SANJAY.
* Now my $HOME/.login contains the paths of additional 15 softwares & NO PROBLEM !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-01-2004 04:37 AM
тАО10-01-2004 04:37 AM
Re: Warning: Ridiculously long path truncated
PATH=$(echo $PATH | scrub_path.sh)
For csh its:
set path = ` echo $PATH | scrub_path.sh | sed 's/:/ /g' `
Mike D'.