LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-30-2014, 12:07 PM   #1
usb943
LQ Newbie
 
Registered: Apr 2014
Posts: 11

Rep: Reputation: Disabled
Noob wonders if this is possible? (on windows)


Hello,

Im going to be using windows for the user aspect.

First I need to create a small program that 'phones home' when a client starts their windows machine, to connect to my database on linux.

The database needs to contain entries (name, addresses, etc), but I also need the database to countdown from 24 hours, and if its longer than 24 hours since the user started their machine, the database flag it up to me.

I've got no database experience, so I have no idea if this is possible,
 
Old 07-30-2014, 12:14 PM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
If you are in a windows domain this is as easy as sending a log over and parsing it and putting it into your database.

If you are NOT in a windows domain and you want to do this on a computer running windows then you can use a windows script and plink to connect to the remote computer and output into a log which you can then parse and put in your database.

You could also use the windows mysql client to put the record into your database.

Or you can create a client/server program where the client runs in windows and forwards auth events to a listener on your linux box that then parses it and puts it into your database.

In short, its possible in lots of different ways.
 
Old 07-30-2014, 12:34 PM   #3
usb943
LQ Newbie
 
Registered: Apr 2014
Posts: 11

Original Poster
Rep: Reputation: Disabled
Thanks szboardstretcher,

I want to create a way that informs me when an elderly person dont start their machines in 24 hours maybe because they have a medical problem.

But If they start their machine and the program connects to my database in 24 hours I know they're alright.
 
Old 07-30-2014, 02:17 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
you could do that with just a "ping" to your server from the client
 
Old 07-30-2014, 03:35 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Without knowing all the details IMHO not sure I would not rely on something like as a way to check on an elderly person.
You could use windows task scheduler to run a client app at boot up. Something as simple as nc that sends a message. Nc on the server that pipes the name to a script that saves it with a time stamp. A cron job could be used to check times and send a signal of some type. Kind of messy but no complicated programming skills required.

http://kudithipudi.org/2011/07/14/ho...-on-windows-7/
 
Old 07-30-2014, 04:01 PM   #6
usb943
LQ Newbie
 
Registered: Apr 2014
Posts: 11

Original Poster
Rep: Reputation: Disabled
Thanks guys
 
  


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
life has many wonders, we just need the eye yen_yang LinuxQuestions.org Member Intro 1 09-17-2008 09:31 PM
The wonders of firefox DanTaylor General 6 03-05-2006 06:20 PM
Can I LAN with this? Network-Noob wonders. stranger777 Linux - Networking 5 09-10-2004 04:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:31 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