On Wednesday 15 Oct 2003 3:21 pm, James Edward Gray II wrote: > On Wednesday, October 15, 2003, at 09:03 AM, PD Schloss wrote: > > Hi, > > > > I have a perl script that I would like to make available on-line. I > > suspect the target community (microbiologists) has no interest in > > getting/learning perl for themselves and would prefer to use it as an > > on-line resource. Since I am a newbie at much of this, I was wondering > > if someone could direct me where I can learn to do this. > > > > My plan would be to have people upload a file and execute the script > > and > > be able to have the results (several files) emailed to them when the > > script is done running. The script can take awhile to run so it would > > be good if the submitter could leave the site while the script is being > > executed. I'm sorry if this idea and question seems a bit naive but > > I'm > > not sure how/if I should go about doing this. Any suggestions would be > > great. > > Here's some thoughts I had, just reading your message. > > I would convert your script to run as a daemon in the background. Have > it watch a specific directory and get to work whenever a file pops up > there. When it's done, email the results off. > > After that you just need a web page with an upload form and a simple > CGI script that drops the file in the right directory. You may > actually need to drop two files, since you'll probably need some other > metadata (an email address, for example). Also remember the cardinal > rule for this type of "mailbox" setup, add the file to the directory > with some name or extension your script ignores, then rename it to > something the script will pick up on. This keeps your script from > seeing the file until it's complete. > > Well, those are just some of my basic ideas. Hope that at least gets > you thinking in the right direction. Good luck with your project. > > James >
James, I'm curious, why bother running a daemon which needs starting/stopping, and watching to make sure it doesn't die, when if you're going to use CGIs to populate the directory in the first place, why don't you simply call the script from there? > > Thanks, > > Pat > > > > > > -- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] -- Gary Stainburn This email does not contain private or confidential material as it may be snooped on by interested government parties for unknown and undisclosed purposes - Regulation of Investigatory Powers Act, 2000 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]