ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
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.
Hi all,
I'm working on a software that automatically update your jobs in computer to the Internet, ex: text editor, openOffice,.... So I want to ask you to suggest me some algorithms to track the programs that we want to update jobs. I though of tracking the size of file but not clearly.
Any suggestions would be appreciated. Thanks!
If I understand your question correctly, you want to write a software update agent. Is that correct? If so, tracking the file size is not a reliable way to do it. You need to build a simple database, text file will work, of the version numbers of each installed program you want to track, and pro programmaticly compare that against what version is available on the developer's site.
No, I don't. Let me explain it more clearly: Assume that you are working on a text editor to write your code, and your computer is crashed, so the data of hard disk is absolutely cant be recovered. Therefore we need a software that can automatically update your text editor file.
That's the idea of my software.
Hold it. You want a daemon that monitors the user's activity, knows each document the user opens, and uploads snapshots of the documents to a cloud? And you want all of this to be done invisibly?
Can you see how this technology could potentially be misused?
If what you want is offline backup, get an account with something like DropBox or UbuntuOne.
Yes, this software could potentially be misused. But I do it because I want to have fun and to be challenged. Finding the algorithm to monitor intelligently our jobs in computer is cool . As I said, this software will be very useful to backup our data. So, could everyone just focus on the algorithm ?
For security purpose, I think there is a solution: if you turn on the computer, the software will automatically be visible and tell you that it's running.
Inotify is very useful. But I think the software should tracking some processes that communicate with keyboard event. So, if there are some keyboard events, like keystrokes, how can I capture the keyboard events and know PIDs or names of processes that those events are communicating with ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.