05-25-2009
Fetch running applications list in Linux
Hi,
I need to write a code which will fetch all the application activity on user computers including app name, time of day, duration, version, etc.
Using this I need to know which applications are running currently in user's computers.
How can it be done programmatically? I need to write the code in C/C++.
The application I am building will run in background like a daemon and will get all the running applications info and will send it to the server.
I really appreciate any help, code snippet....
Thanks a lot.
Arun
8 More Discussions You Might Find Interesting
1. OS X (Apple)
Hello, I am running MAC OS X PANTHER I was wandering if anyone knew how to make the desired applications run on my desktop?
I know how to do this if I make my own apps. using Realbasic, but what if I want to run CPU monitor, calender, CPU temperature, etc...?
I know there has to be a way to do... (8 Replies)
Discussion started by: adamcb
8 Replies
2. Shell Programming and Scripting
I am trying to fetch failed process but while doing that unable to do so. like;
(1)ps -ef | grep snmpCollect
o/p is coming like -
root 12423 4393 1 19:44:06 pts/0 0:00 grep snmpCollect
(2)ps -ef | grep sttps
o/p-
root 15517 4393 0 19:53:24 pts/0 0:00 grep sttps... (6 Replies)
Discussion started by: kumarabhi84
6 Replies
3. UNIX for Dummies Questions & Answers
I've looking over a script for work and I've had a problem with the script not listing the files in alphabetical order. To look up PIDs for apps, it would be beneficial to have them listed in that order. Here is what I've been reviewing.
#!/usr/bin/perl
$str = sprintf "%4s %-40s", "PID",... (7 Replies)
Discussion started by: whysolucky
7 Replies
4. Solaris
Hi All,
I am trying to fetch a list which will give only the registred applications installed on soalris box.I want to exclude rest evrything..like drivers,database related packages and the list should contains pure application related packages installed on solaruis machine.
i am using... (0 Replies)
Discussion started by: omkar.jadhav
0 Replies
5. AIX
Hi All,
I am new bee in AIX and i am trying to list out installed packages on any AIX machine in below format:
packagename:<application/package name> ; <application/package version> ; <application/package vendor>
can some one please suggest small script which will use lslpp and provide... (5 Replies)
Discussion started by: omkar.jadhav
5 Replies
6. UNIX for Dummies Questions & Answers
Hi, I read a way back about how LLd (linux-loader) or execve are not actually given a complete file name to find a file ;my guess a configuration file, but instead do some guessing and processing to figure out which one to load into memory. I have also read where a program that loads the... (2 Replies)
Discussion started by: theKbStockpiler
2 Replies
7. HP-UX
Hi All,
I have a requirement to get all the running services on few HP-UX boxes. In Linux systems I am able to do that successfully using: chkconfig --list. However I can't find anything equivalent in HP-UX. If anyone has any pointers on the same then please suggest.
Adyan (4 Replies)
Discussion started by: Adyan Faruqi
4 Replies
8. Shell Programming and Scripting
Hi
I have below lists of files
filename-1.0.0.tar.gz
filename-1.0.1.345657676.snapshots.tar.gz
so when I do grep -o 'filename-*.tar.gz' | sort | tail -1
then it consider snapshots as a part of it's result.
How can I make sure, that it should only display the results from... (3 Replies)
Discussion started by: manas_ranjan
3 Replies