My web page uploads a file. Currently it places that file in a directory which is polled by a cron job. If the file is there, a bash script acts on the file. I hate the fact that I am polling. The upload happens perhaps once a week, but the user wants to see results within minutes from their file, so I end up polling every 5 minutes.
So rather than polling, I'd like to evoke the script once the upload is complete. How can I get my web page to fire up the bash script. The web page is coded with JSP.