LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-03-2010, 01:46 PM   #1
widapol
LQ Newbie
 
Registered: Sep 2010
Posts: 16

Rep: Reputation: 0
Algorithm to track your programs


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!
 
Old 11-03-2010, 01:56 PM   #2
udaman
Member
 
Registered: Oct 2010
Location: New England, USA
Distribution: OpenSUSE/Slackware64/RHEL/Mythbuntu
Posts: 189

Rep: Reputation: 39
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.
 
Old 11-03-2010, 06:19 PM   #3
widapol
LQ Newbie
 
Registered: Sep 2010
Posts: 16

Original Poster
Rep: Reputation: 0
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.
 
Old 11-03-2010, 06:42 PM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,220

Rep: Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309
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.

Last edited by dugan; 11-03-2010 at 06:43 PM.
 
1 members found this post helpful.
Old 11-04-2010, 12:27 AM   #5
widapol
LQ Newbie
 
Registered: Sep 2010
Posts: 16

Original Poster
Rep: Reputation: 0
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.

Last edited by widapol; 11-04-2010 at 12:30 AM.
 
Old 11-04-2010, 08:22 AM   #6
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,220

Rep: Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309
http://en.wikipedia.org/wiki/Inotify
 
Old 11-04-2010, 11:10 AM   #7
widapol
LQ Newbie
 
Registered: Sep 2010
Posts: 16

Original Poster
Rep: Reputation: 0
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 ?

Last edited by widapol; 11-04-2010 at 11:14 AM.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
token bucket algorithm vs Leaky bucket algorithm xeon123 Linux - Networking 2 03-26-2007 04:57 AM
What is the best cryptographic algorithm? Linux.tar.gz Linux - Security 19 05-02-2006 08:54 PM
How to install and track programs compiled from source jimdaworm Debian 4 10-04-2004 02:39 AM
Do you memorize the algorithm?For... shakedown1987 Programming 5 08-05-2004 07:21 AM
Keeping track of compiled programs etc. mnjdesigns Linux - Newbie 11 03-02-2004 11:38 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:17 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration