LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 01-30-2006, 01:26 AM   #1
sreeramabsc
LQ Newbie
 
Registered: Jan 2006
Posts: 13

Rep: Reputation: 0
How to know the foreground process group ID of another console ??


Hi friends,
First of all, I admit that I am not aware whether I can post this question here or not. But this is Linux related and is related to Processes and their information. Also, this is related to C System calls. Hence I was confused as to whether can I post this question here or not. However, I have collected all courage and posting it here !!

I would like to know as to how can we know the foreground process group ID of another console ( or chvt). Say for eg, I am working in /dev/tty1 and there is another process running in /dev/tty2. I would like to know as to what is the foreground process group ID of the process running in /dev/tty2. How can I achieve this? I tried to use the 'ioctl' system call in C language, but I could not succeed, probably due to wrong usage. Could anyone kindly guide me in achieving the above, using C system calls(preferable) or any other method ?

Thanks,
Sreeram
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Background and Foreground Datamike Linux - Software 2 01-20-2006 04:20 PM
process' and printf's in console jnusa Programming 7 01-12-2005 02:41 AM
Unable to view user/group console? bottomsup6 Linux - Software 1 07-28-2004 11:59 AM
Group Admin, Group Root, or God over Group crickett Linux - General 5 07-12-2004 04:01 PM
What are Session ID, Group ID, Process ID... yrraja Linux - General 4 10-26-2003 10:33 PM


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

Main Menu
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