Susan,

The FILEINFO path probabily isn't a good recommendation in that it
relies on the entry being their and it will take a lot more overhead.

Here is a small basic program that will "parse" a relative path.
0001 x="../../this.path/that.path/BANANA"
0002 h="/u1/uv/spool"
0003 if x[1,1] ne "/" then x=h:"/":x
0004 dim a(30)
0005 matparse a from x using "/" setting n
0006 i=0
0007 j=0
0008 loop while i < n
0009  i+=1
0010  j+=1
0011  if a(i) eq ".." then j=j-1
0012                  else a(j)=a(i)
0013 repeat
0014 matbuild x from a,1,j using "/"
0015 print x

Hope this is what you can use...

Rod Hills

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Monday, March 12, 2007 1:19 PM
To: [EMAIL PROTECTED]
Cc: [email protected]
Subject: RE: [U2] Help with File Pointers

<quote who="Susan Joslyn">
> Hi Karl,
> Thanks! The thing is, I can figure out where "I am", but I need to
figure
> out where two Fpointers are pointing.
>
> Say I have two Fpointers (VOC entries):
>
> 001 F
> 002 ../../this.path/that.path/BANANA
> 003 ../../this.path/that.path/D_BANANA
>
> And another
> 001 F
> 002 /u1/ud/this.path/that.path/BANANA
> 003 /u1/ud/this.path/that.path/BANANA
>
> How do I determine for certain that they are (or are not) pointing to
the
> same exact file?

If you SH out to a command prompt, then you can do

cd <line 2 on each F-Ptr> minus the file itself. If you do this in 2
different command prompts, then type PWD in each, you'll see the exact
path, and if it matches, then you are looking at the same file.

This is one reason not to use relative file points to 'remote' files.
It's
better to use Q-pointers.

I hope this is more clear that my previous feeble attempt.

Karl


>
> Susan
>
>
>


-- 
Karl Pearson
Director of I.T.
ATS Industrial Supply, Inc.
[EMAIL PROTECTED]
http://www.atsindustrial.com
800-789-9300 x29
Local: 801-978-4429
Fax: 801-972-3888

"To mess up your Linux PC, you have to really work at it;
 to mess up a microsoft PC you just have to work on it."
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/
___________________________________________________

This e-mail and any attachments are for the sole use of the 
intended recipient(s) and may contain privileged and 
confidential information. Any unauthorized review, use, 
disclosure or distribution is strictly prohibited. If you are not 
the intended recipient(s), please contact the sender by reply 
e-mail and destroy all copies of the original message.
Thank you.
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to