Running a bash script from an HTML link or button
- by Andrew
I have a webserver that's hosting lots of images. I want the client to be able to press a button or a link, which will run a bash script, which will create a video based on all these pictures. The script I'm trying to run is this:
#!/bin/bash
# cd to the directory
cd /var/www/gallery
# use ffmpeg to make video
ffmpeg -pattern_type glob -i…