Operating System - HP-UX
1834389 Members
2462 Online
110066 Solutions
New Discussion

sort: The path name is too long

 

sort: The path name is too long

Hi,

I am using the UNIX sort command to sort a file "testFile" and I want to specify a directory for creation of temporary files as "/u1/home/deepakp/gcdbvol/gcdb_base/csm_gcdb_base/data/differentiator/build/qabcdefghijkl".

I executed the following command:

sort -T /u1/home/deepakp/gcdbvol/gcdb_base/csm_gcdb_base/data/differentiator/build/qabcdefghijkl/ testFile

and encountered the following error:

sort: The path name is too long: /u1/home/deepakp/gcdbvol/gcdb_base/csm_gcdb_base/data/differentiator/build/qabcdefghijkl/

It seems there is a limit (of 88 characters) on the length of the directory specified for temporary files.

Is there some way to circumvent this issue and be able to specify directories of length greater than 88?
It Has Been...
8 REPLIES 8
Robert-Jan Goossens
Honored Contributor

Re: sort: The path name is too long

Hi,

Are you running 10.20 ?

Check for PHCO_19559

Hope it helps,

Robert-Jan.
Jose Mosquera
Honored Contributor

Re: sort: The path name is too long

Hi,

I have replicated your sort conditions on 11.0 and works fine. If you are on 10.20 try Robert's recomendation, other temporal way is trying this through a symbolic link.

Rgs.
Carlos Fernandez Riera
Honored Contributor

Re: sort: The path name is too long

From man sort:


-T dir Use dir as the directory for temporary scratch files
rather than the default directory, which is is one of
the following, tried in order: the directory as
specified in the TMPDIR environment variable;
/var/tmp, and finally, /tmp.
unsupported

Re: sort: The path name is too long

Thanks for your reply.

the server is running on HP UX 11.00. Do I need to make some kernal parameter changes

Srini
It Has Been...

Re: sort: The path name is too long

This is a specific requirement of having such a long path for temp dir.
It Has Been...
Robert-Jan Goossens
Honored Contributor

Re: sort: The path name is too long

Hi,

For 11.0 check PHCO_17809

Robert-Jan.

Re: sort: The path name is too long

PHCO_17809 is already installed on this system.
It Has Been...
MANOJ SRIVASTAVA
Honored Contributor

Re: sort: The path name is too long

I dotn thisnk there is a way to circumvent it unless , you can create a softlink , even that will look at the path too , may be you can try running the osrt from a sub directory level essentially using a smaller path.


Manoj Srivastava