LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-11-2005, 06:07 AM   #1
hungnt
LQ Newbie
 
Registered: Feb 2005
Posts: 6

Rep: Reputation: 0
get information when a process run??????


Hi!
When a process in linux run, and it does something like create or edit a file... So, there is a method in linux (or in a programing language) to get all information about it (list of new created files, list of edited files....) ?
Thanks.
 
Old 07-11-2005, 07:18 AM   #2
fouldsy
Senior Member
 
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284

Rep: Reputation: 47
Not quite sure what you mean or why you'd want to see all modified files by a running service. Tools like Tripwire can be used to scan your system and keep a snapshot of all files and then report back on modified files the next time it is ran but this picks up everything, not just those modified by a particular service.
You could write a bash script that checks for modified files based on the last modified date, but again, it wouldn't do it for a particular service that I know of. Just depends on what you're wanting this information for.
 
Old 07-11-2005, 08:35 AM   #3
Emmanuel_uk
Senior Member
 
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,604

Rep: Reputation: 47
not sure either, but try
man ps

to see if any info you are after can be given by the ps command
 
Old 07-12-2005, 04:38 AM   #4
hungnt
LQ Newbie
 
Registered: Feb 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Hi!
I'd want to see all modified files by a running service because:
http://www.linuxquestions.org/questi...hreadid=341803
(Sorry because my English so bad , I hope You understand what I mean)
Thanks
http://rocklinux.org/75.html

Last edited by hungnt; 07-12-2005 at 05:01 AM.
 
Old 07-12-2005, 05:52 AM   #5
enemorales
Member
 
Registered: Jul 2004
Location: Santiago, Chile
Distribution: Ubuntu
Posts: 410

Rep: Reputation: 30
Well, there is also the command "lsof" (list open files). Maybe you can use it to monitor the activity of the process...
 
Old 07-12-2005, 09:51 PM   #6
hungnt
LQ Newbie
 
Registered: Feb 2005
Posts: 6

Original Poster
Rep: Reputation: 0
When we install a source package (not a rpm), the installation maybe creates (or modify) some files, so how can I get ALL the created (or modified) files?
 
Old 07-16-2005, 11:57 AM   #7
Emmanuel_uk
Senior Member
 
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,604

Rep: Reputation: 47
hungnt,

There is a tool called updatedb that creates a database of all the files.
Then the command locate is used to find where a file is instead of
the command find. Using updatedb before and after and cmpare the
databases might work. However I do not think dates qre kept in
updatedb.

The intrusion detection system tripwire might fit the bill for what you want to do
It is very comprehensive

btw if you are thinking uninstall, you do not have to delete by hand; you can
just uninstall the rpm; but /vqr or temp files might still be there.
Oops I meqnt if you make / make install
then usually there is also an uninstall procedure as well

Last edited by Emmanuel_uk; 07-16-2005 at 11:58 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to write a system call to display the process information? balasquare@yahoo.com Programming 3 09-30-2005 02:05 AM
How to get the current process information balasquare@yahoo.com Programming 4 09-29-2005 05:39 AM
How to use task_struct to get process information?? Pratik H Pandya Programming 2 09-15-2005 04:40 AM
process information application? YBA^[x] Slackware 6 01-13-2005 11:04 AM
run process when reboot ust Linux - General 2 08-15-2003 02:49 AM


All times are GMT -5. The time now is 03:05 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration