|Think about Loose Coupling|
Executing program with arguments from cgi scriptby natol44 (Sexton)
|on Jan 24, 2021 at 17:27 UTC||Need Help??|
natol44 has asked for the wisdom of the Perl Monks concerning the following question:
I need to run ffmpeg from a CGI script, of course with arguments: Video to process, watermark to add, etc, and output file.
I put all this in one variable:
my $order = "$ffmpeg -i $video -i $watermark parameters etc $output";
with $ffmpeg is the program's address, $video the video address etc.
then I tried with
If I write the output content of $order in the SSH command line, it works.
Where am I wrong? Thank you!