LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 10-02-2005, 02:56 PM   #1
cfh
LQ Newbie
 
Registered: Oct 2005
Posts: 2

Rep: Reputation: 0
monitor processes to be notified when a new process is started?


hello,
I am a newbie on Linux programming.
I am trying to write a code to notify me if there is a process starting. I want to be notified before the process is executed. Just like Norton Internet security will stop a program, and ask you if you want to allow the program to run.

thank you.
 
Old 10-02-2005, 05:05 PM   #2
Samsara
Member
 
Registered: May 2003
Distribution: Ubuntu, Mac OS X Tiger
Posts: 481

Rep: Reputation: 32
This would be best implemented as an extension to a shell, I believe. In bash, you can suspend the foreground process by Ctrl+Z. Find out about the proc filesystem or whatever that's been renamed to under the 2.6 style fs - this will carry any other info about processes.

HTH,

Samsara
.
 
Old 10-03-2005, 08:07 PM   #3
cfh
LQ Newbie
 
Registered: Oct 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Samsara
This would be best implemented as an extension to a shell, I believe. In bash, you can suspend the foreground process by Ctrl+Z. Find out about the proc filesystem or whatever that's been renamed to under the 2.6 style fs - this will carry any other info about processes.

HTH,

Samsara
.
Thank you, I will start to look into proc.
But I don't know what you mean of the extension to a shell??
 
  


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
Redirecting output of background processes after they've been started (BASH) DaneM Programming 18 08-08-2011 10:03 PM
Priority of processes (using nice) started from within a script podollb Linux - Software 1 01-08-2006 12:44 PM
multiple processes everytime i start a process murray_linux Red Hat 4 07-29-2005 06:01 PM
If I want, that process has automatically started at system loading or reloading ukrainet Linux - Newbie 2 12-14-2004 10:39 AM
several processes started more than once at boot j-ray Linux - General 2 05-13-2004 01:37 PM


All times are GMT -5. The time now is 05:19 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