Xeven Posted April 2, 2008 Share Posted April 2, 2008 I'm not too sure if I am being a bit stupid in thinking this is possible but I figured I would ask here to see if it is possible regardless. Ok so basically, is it possible for a local machine to have a directory which contains files. Now the local machine will check the directory every 15secs or even automatically and then realise there is a new file in this directory. If there is, then the local machine will then upload the contents of said directory to a remote MySQL database. Is this at all possible, or is there a way I could come close as to getting something like this working? Thanks in advance. Quote Link to comment Share on other sites More sharing options...
gluck Posted April 2, 2008 Share Posted April 2, 2008 Create a cronjob and execute every 15 or what ever minutes. Write a shell/php or perl script that globs the contents of the directory and matches against the last globbed results. If they are different open a mysql connection and upload the new data. Quote Link to comment Share on other sites More sharing options...
Xeven Posted April 3, 2008 Author Share Posted April 3, 2008 Should probably mention this is trying to be done in Windows environment. Thanks for the feedback gluck. Quote Link to comment Share on other sites More sharing options...
aschk Posted April 3, 2008 Share Posted April 3, 2008 In which case the same applies, just use windows scheduler instead of cron... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.