in reply to Network Drive?

I think if you ran the df command that might give you the information you needed -- either it leads with /dev or /mnt and it's local, or it's something else and it's a network drive.

That's a not a cut-and-dried solution, but it might get you started.

Alex / talexb / Toronto

"Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

Replies are listed 'Best First'.
Re^2: Network Drive?
by DrHyde (Prior) on Oct 03, 2005 at 09:42 UTC
    Have you read the source for df and mount to see how they do it? Then presumably you could take that little snippet of C and wrap it up in a module. You may need to make the C bit platform-specific.