Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to manage processes in Linux?

Status
Not open for further replies.

kerkkoj

Programmer
May 5, 2003
2
FI
Hello!

I´m trying to create this little program(with GUI) in Linux that shows all processes(or threads?) that are running in a listbox(or similar) and then it is possible to for example kill a process by clicking it.

How can I get the list of all processes running, and put the list in a text file or in variables using tcl/tk?


- kerkkoj, Finland
 
ps -ef will return a list, right?
In Tcl, you would "set list1 [exec ps -ef]"
Then you can make the listbox's "listvariable" that list (list1).
I don't know LINUX but I think that would work on UNIX.

Bob Rashkin
rrashkin@csc.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top