LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-28-2004, 09:17 AM   #1
Mclewson
LQ Newbie
 
Registered: Nov 2004
Location: Va
Distribution: All
Posts: 14

Rep: Reputation: 0
problem with find


Whenever I issue a find command I get a funky messages returned. Here is an example:

find / -name httpd.conf
/etc/httpd/conf/httpd.conf
find: /proc/6287/task: No such file or directory

What does the last line mean, and why is it coming up?

Thanks
Mclewson
 
Old 11-28-2004, 09:36 AM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
/proc/ is a virtual filesystem that reports things about the running kernel.

The directory /proc/pid contains information on a running process. In this case, the process ID (PID) of the process is 6827.

The reason that you are seeing this message is that find gets the directory contents of /proc/, as part of its search through the filesystem, and then tries to access each directory in turn.

Unfortunately, the pid process ends in between find reading the directory contents, and actually entering the pid directory. So the attempt to change to that directory fails, hence the error message.
 
Old 11-28-2004, 09:49 AM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
It probably has to do with two things: user ID (versus root ID) and user directory/file permissions (versus root permissions). When running such a broad search as user (find / searches the entire filesystem), you should get a lot of 'permission denied' returns for the directories user is denied permission to look into. The process in question may be associated with the ID of the individual running find. It may exist for root, but not for user.
Try opening a term and su to root, then run the same find again. See if the same (or similar) line shows up again.
 
Old 11-28-2004, 10:24 AM   #4
powdered_finn
LQ Newbie
 
Registered: Nov 2004
Location: Eire
Distribution: SuSE9.1
Posts: 19

Rep: Reputation: 0
Hi,

You also might want to try "locate" command, just remember to run "updatedb" as root before searching.

p_finn
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with the #find command jbuckley2004 Linux - General 7 08-26-2005 05:51 PM
bash for + find problem kule Programming 9 02-23-2005 04:48 AM
Find problem draggin Mandriva 2 12-13-2004 09:06 PM
cant find the problem..pls help ????? rajatgarg Linux - Software 0 07-07-2004 06:46 PM
Problem with find jowid Linux - Newbie 3 10-09-2003 04:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration