LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 01: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, 04: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, 07: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



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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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