Hello,
I'm not too good with bash scripting. How do I get input from the user? I've used the read -p before but that won't suffice this time because I need to be able to run the script on one command.
This is my task in detail:
I'm writing a scrip to convert any video file to a FLV type. The script should run from a web browser on the users command.
So the PHP needs to be something like:
Code:
exec(/var/www/myfolder/scripts/vid2flv.sh -i input_file -o output_file);
How do I get the contents after -i and -o into my shell script as separate variables?
EDIT: I've been googling this with no luck, is this even possible? It has to be, otherwise how do those config scripts work?!?!
Thanks,
vxc