Re: realpath madness
John Hughes <[email protected]>
| Newsgroups | gmane.linux.cluster.ssic.devel |
|---|---|
| Message-ID | <[email protected]> |
John Hughes wrote:
> [...]
> and in /cluster/nodeXXX/symlink we have files containing the values of
> all the {xxx} things cdsl's can have,
>
> i.e. /cluster/node6/symlink/nodenum contains "6".
>
Even better /cluster/node6/symlink/nodenum is a symlink to "6"
/cluster/symlink -> /cluster/node{nodenum}/symlink
/cluster/nodeX/symlink/nodenum -> X
So readlink ("/cluster/symlink/nodenum") returns X on node X.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php