[H-GEN] Strace on a binary get full path details on a stat

Clinton Roy clinton.roy at gmail.com
Wed Oct 11 02:19:07 EDT 2006


Hi Anthony,

> stat("/opt/j2sdk1.4.../bin/java", 0xbfb06eb8) = -1 ENOENT (No such
> file or directory)
>
> As you can see the path is being cut down with the ... in the path
> name. Does anyone know how to get the full path instead of the cut
> down version.

My strace manpage says that trucated strings are displayed like this:

stat("/opt/foo/bar"...)

so I think you are actually seeing the full string. Also, strings are
only truncated above 32 characters by default.

Regardless, the option you asked about is -s, pass it a larger number
like 1024 and you'll know for sure you're seeing the full string.

My money is on a broken installer thing :)

cheers,
-- 
Clinton Roy
www.acqao.org - ARC Centre of Excellence for Quantum-Atom Optics
www.humbug.org.au  - Brisbane Unix Group
azure.humbug.org.au/~croy/blog - Blog
www.flickr.com/photos/croy/ - Photos




More information about the General mailing list