Re: Skipping the /proc filesystem

2003-07-23 Thread Shankar Unni
Randall R Schulz wrote:
 At 18:15 2003-07-22, David A. Cobb wrote:
I would wish to tell find not to get involved with the /proc filesystem 
at all. Can that easily be done?
 
 Very easily:
 % find / -path '/proc' -prune -o -print

Would it make sense to identify the inodes under /proc/registry as not
regular files (type f), but, say, devices (or other such special files)?

--
Shankar.



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: Skipping the /proc filesystem

2003-07-23 Thread Chris January
 Randall R Schulz wrote:
  At 18:15 2003-07-22, David A. Cobb wrote:
 I would wish to tell find not to get involved with the /proc filesystem
 at all. Can that easily be done?
 
  Very easily:
  % find / -path '/proc' -prune -o -print

 Would it make sense to identify the inodes under /proc/registry as not
 regular files (type f), but, say, devices (or other such special files)?

No.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: Skipping the /proc filesystem

2003-07-23 Thread Randall R Schulz
At 13:59 2003-07-23, Chris January wrote:
 Randall R Schulz wrote:
  At 18:15 2003-07-22, David A. Cobb wrote:
 I would wish to tell find not to get involved with the /proc filesystem
 at all. Can that easily be done?
 
  Very easily:
  % find / -path '/proc' -prune -o -print

 Would it make sense to identify the inodes under /proc/registry as not
 regular files (type f), but, say, devices (or other such special files)?
No.


Chris,

Just to clarify what may, due to quote trimming, appear to be a 
suggestion I made, the idea about using a special inode type for the 
/proc entries was not mine, it was David A. Cobb's.

Randall Schulz

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


Skipping the /proc filesystem

2003-07-22 Thread David A. Cobb
Maybe this is something any native *nix speaker knows, but I'm stull 
trudging up the learning curve.

If I do a (cygwin) find for some fragment of a filename, I get a whole 
pile of hits in the /proc/registry area -
none of which is relevant.  I would wish to tell find not to get 
involved with the /proc filesystem at all.

Can that easily be done?

--
David A. Cobb, Software Engineer, Public Access Advocate
By God's Grace I am a Christian man, by my actions a great sinner. -- The Way of a 
Pilgrim; R. M. French, tr.
Life is too short to tolerate crappy software.
.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


Re: Skipping the /proc filesystem

2003-07-22 Thread Randall R Schulz
David,

At 18:15 2003-07-22, David A. Cobb wrote:
Maybe this is something any native *nix speaker knows, but I'm stull 
trudging up the learning curve.
It is entirely non-Cygwin-specific, yes.


If I do a (cygwin) find for some fragment of a filename, I get a whole 
pile of hits in the /proc/registry area - none of which is 
relevant.  I would wish to tell find not to get involved with the 
/proc filesystem at all.

Can that easily be done?
Very easily:

% find / -path '/proc' -prune -o -print

To paraphrase, find starting in slash pruning away any path names that 
begin with /proc and print all others.

Randall Schulz


--
David A. Cobb


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/