qnet ignores prefix ?

I use ln -sP to prefix in the main tree, some directories which are in a
different partition (qnx4 filesystem).
if I ls /net/other_machine, I can see my links and prefix but, if now I
want to run an app giving the path including a link, it’ s impossible.
Why ?

thanks
Alain.

Alain Bonnefoy <alain.bonnefoy@icbt.com> wrote:

I use ln -sP to prefix in the main tree, some directories which are in a
different partition (qnx4 filesystem).
if I ls /net/other_machine, I can see my links and prefix but, if now I
want to run an app giving the path including a link, it’ s impossible.
Why ?

I can’t tell exactly without knowing how you linked them,
but a common mistack is linking them with absolate path.

$ ls -l lib
lrwxrwxrwx 1 root root 7 Aug 18 18:23 lib → x86/lib
$ ls -l lib1
lrwxrwxrwx 1 root root 8 Oct 26 21:53 lib1 → /x86/lib

“lib” should be OK to access cross network, but “lib1” will not.

-xtang

Ok she-she Xiaodan

Xiaodan Tang a écrit :

Alain Bonnefoy <> alain.bonnefoy@icbt.com> > wrote:
I use ln -sP to prefix in the main tree, some directories which are in a
different partition (qnx4 filesystem).
if I ls /net/other_machine, I can see my links and prefix but, if now I
want to run an app giving the path including a link, it’ s impossible.
Why ?

I can’t tell exactly without knowing how you linked them,
but a common mistack is linking them with absolate path.

$ ls -l lib
lrwxrwxrwx 1 root root 7 Aug 18 18:23 lib → x86/lib
$ ls -l lib1
lrwxrwxrwx 1 root root 8 Oct 26 21:53 lib1 → /x86/lib

“lib” should be OK to access cross network, but “lib1” will not.

-xtang

Xiaodan Tang a écrit :

Alain Bonnefoy <> alain.bonnefoy@icbt.com> > wrote:
I use ln -sP to prefix in the main tree, some directories which are in a
different partition (qnx4 filesystem).
if I ls /net/other_machine, I can see my links and prefix but, if now I
want to run an app giving the path including a link, it’ s impossible.
Why ?

I can’t tell exactly without knowing how you linked them,
but a common mistack is linking them with absolate path.

$ ls -l lib
lrwxrwxrwx 1 root root 7 Aug 18 18:23 lib → x86/lib
$ ls -l lib1
lrwxrwxrwx 1 root root 8 Oct 26 21:53 lib1 → /x86/lib

“lib” should be OK to access cross network, but “lib1” will not.

-xtang

It’s effectively the case but I have a problem with one link. I want to do
ln -sP fs/hd0-qnx4/usr/local /usr/local

the problem is that the link doesn’t work, in that case, if I don’t put /
before fs.

Do you have a solution?

Thanks
Alain.

Alain Bonnefoy <alain.bonnefoy@icbt.com> wrote:


Xiaodan Tang wrote :

Alain Bonnefoy <> alain.bonnefoy@icbt.com> > wrote:
I use ln -sP to prefix in the main tree, some directories which are in a
different partition (qnx4 filesystem).
if I ls /net/other_machine, I can see my links and prefix but, if now I
want to run an app giving the path including a link, it’ s impossible.
Why ?

I can’t tell exactly without knowing how you linked them,
but a common mistack is linking them with absolate path.

$ ls -l lib
lrwxrwxrwx 1 root root 7 Aug 18 18:23 lib → x86/lib
$ ls -l lib1
lrwxrwxrwx 1 root root 8 Oct 26 21:53 lib1 → /x86/lib

“lib” should be OK to access cross network, but “lib1” will not.

-xtang

It’s effectively the case but I have a problem with one link. I want to do
ln -sP fs/hd0-qnx4/usr/local /usr/local

the problem is that the link doesn’t work, in that case, if I don’t put /
before fs.

Do you have a solution?

cd /usr

ln -sP …/fs/hd0-qnx4/usr/local local

Or

ln -sP /net//fs/hd0-qnx4/usr/local /usr/local

(Haven’t try, but should work theoretically :slight_smile:

-xtang