Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Thanks! I really appreciate your answer with a number of Linux commands in it to try. I haven't tried them all but I assume I will get the results I want, from these.
But, as I wrote I want some solution which I could code, so should I assume to execute the required commands in C/C++ code using system() or execl()??
Will this solution work for all Linux flavors or on the widely used flavors altleast like RHEL, Fedora, Ubuntu, Debian, CentOS, OpenSuse etc. I want to deploy an app that will send the system details about of the end-user system, their web activities, hardwares list, installed and currently running applications. The app will send the details to a server which provides the admins the usage behaviors in the network.
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
Rep:
If you're doing a homework problem, I can see why you would want to code in C/C++, but shell scripting is how these commands would automated, customized. You can parse the output to a gui using grep, and sed.
The requirement is to code in C/C++ itself. So, I wont be able to use shell scripting directly. And this app is not a GUI app but an application that will run in background as a daemon. So, I need to write in C/C++ itself.
So, should I write a shell script and call it using C program or should I call the commands using code itself and then parse the output programmatically?
The requirement is to write the app in C/C++ itself. So I cannot use shell scripting directly. Also this is not a GUI app, instead its a client program that will run in background like daemon. So, should I write a shell script and the call it in C code or should I call the required commands programmatically? any suggestions.
I saw the app and it should help me with my work. Thanks
Now I can move onto my other query, how can I get all the application activity on user computers including app name, time of day, duration, version, etc. I need to know which applications are running currently in user's computers.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.