Re: Can I write an application using Windows and Linux?
- From: xhoster@xxxxxxxxx
- Date: 20 Jan 2006 01:58:54 GMT
"Chris L." <chrisliapis@xxxxxxxxx> wrote:
> I am looking to write an application and am wondering exactly how to
> accomplish its automation process.
> If my perl application starts on a windows os and then accomplishes its
> goal sending its output to a mysql server on a different machine.
> Can I then grab this data on the mysql server from a completely
> seperate linux machine (running Fedora)?
Sure.
> So thats three seperate systems all networked together (Windows
> machine, Fedora Core Machine, and machine solely running MySQl Server).
> I'm almost positive (please correct me if Im wrong) the application
> will be able to store data from the Windows machine to the MySQL Sever
> machine, and the Linux machine will be able to retrieve this data once
> in the MySQL database.
I've never tried to connect to MySQL from Windows, but I'm pretty sure it
can be done.
> However, how would I automate the linux machine to automatically pick
> the data up when the windows machine is done writing its Filehandle to
> the MySQL Sever??
There are many ways to do it, from simple to very complex. What kind of
latency can you accept between when Windows is done and when Linux realizes
that Windows is done? Can there be more than one program on Windows at any
one time, writing into MySQL? Can there be more than one program on Linux
reading from MySQL?
Some examples:
1) have windows set a flag in a table in MySQL when it is done. Have Linux
daemon check the flag every 30 seconds to see if anything is read.
2) Use sockets to connect directly from perl on Windows machine to perl on
Linux machine, use this socket to tell linux when windows is done.
3) Rather than having a always running daemon on linus, Use some kind of
telnet or ssh module to have windows log onto linux and kick off the linux
perl program when it is done.
4) use MySQL's lock server to coordinate the behaviour of the Windows and
Linux machines.
Xho
--
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service $9.95/Month 30GB
.
- References:
- Can I write an application using Windows and Linux?
- From: Chris L.
- Can I write an application using Windows and Linux?
- Prev by Date: Re: randomly choose some uniq elements of an array
- Next by Date: Re: randomly choose some uniq elements of an array
- Previous by thread: Re: Can I write an application using Windows and Linux?
- Next by thread: Installing a BUNCH of modules but no Internet access!
- Index(es):
Relevant Pages
|
Loading