- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: [help]pathname too long[help]
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
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
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
07-29-2003 06:33 PM
07-29-2003 06:33 PM
I meet a problem.
in my environment,I use csh.and one day I found all of my csh script are not work .when type the script name ,the system only give "pathname too long".even the script only have one line like this:
#! /usr/bin/csh
ls -l
if I change the script to sh, like this:
#! /usr/bin/sh
ls -l
it can work properly.
I just wondering ,what is the meaning of pathname to long, does the csh have some restricts of the length of PATH?because I only add 5 path in ~/.cshrc like this:
set path=( $path /usr/sbin /opt/gcc/bin /opt/perl5/bin/perl /usr/local/bin . /opt/nmp/adm/stool )
and if I remove all the path from my .cshrc and the csh script can run properly.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 07:52 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 07:56 PM
07-29-2003 07:56 PM
Re: [help]pathname too long[help]
and I just use the echo $PATH and found that my $PATH are really too long ,almost 1189 character . does the csh ENV have some restrict on the length of the $PATH ?
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 07:57 PM
07-29-2003 07:57 PM
Re: [help]pathname too long[help]
Please run this and see:
# echo $PATH | wc -c
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 08:00 PM
07-29-2003 08:00 PM
Re: [help]pathname too long[help]
The pathname limit is 1024 characters in csh. I'm suspecting the brackets might cause the problem... you could try setting noglob before the path statement in your script (see man page for csh).
Also, if there are nulls or white space in the enviornment variable value, you can see this problem... I'm guessing that the " . " in the above set path statement might be your problem!
Good Luck :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 08:06 PM
07-29-2003 08:06 PM
Re: [help]pathname too long[help]
From the csh man page:
noglob - If set, file name expansion is inhibited. This is most useful in shell scripts that are not dealing with file names, or after a list of file names has been obtained and further expansions are not desirable.
So maybe you need to do a "set noglob" before setting the path and "unset noglob" after setting the path.
Hope it helps!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 08:08 PM
07-29-2003 08:08 PM