Hi there I have a Rails app running that needs to have it's database periodically updated from an upload of a text file.
The data file is in UIEE format and I'm working on a Ruby script that parses the file and inserts the data into MySQL. That should be OK I think at this stage. However I need to automate this process - basically the client is uploading the UIEE file to a prescribed directory on the remote server. I then either need to detect whether there has been a fresh upload OR rely on cron to look into the directory and then parse the fresh file (if present). Am I on the right track looking at cron to do this? Maybe I'm better building an admin page where the user can manually trigger the running of the database update script? Or is there another unix command that can detect a change in a directory and thereby trigger the script? Any clues on how best to approach this situation would be appreciated... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---