Filename too long

Hi,

I'm trying to tar on Solaris 9 a directory containing very long
filename, so tar exit with the error (filename is greater than 100). Is
there a way to bypass this limit (I can't realy control filename long)?

Regards

Add the E option or use pax, cpio, gnu tar, whatever ...

eg:

tar cEvf file.tar directory

You could try using man cpio (OpenSolaris) instead. Example for creating a tar with all files in the current directory and sub-directories:

find . -type f -print | cpio -o -H ustar > /tmp/test.tar

I have an alternate solution for it if u like..

Try renaming the directory first (of cours if its not a system directory )by the command
"mv" and then do the tar by tar command