R
R
rain1392020-02-18 23:06:48
linux
rain139, 2020-02-18 23:06:48

How to agree in advance to the question y / N when executing a linux command?

exec(" ffmpeg -i '/home/clouduser/public_html/app/Helpers/../../public/preview/video/2ofu0d1ctgq8w.mp4' -profile:v high -pix_fmt yuv420p -s hd720 '/home/clouduser/public_html/app/Helpers/../../public/preview/video/2ofu0d1ctgq8w.mp4");

I have this code, but this command displays the question y / N, how can I make it so that I bypass this question and go directly to the script execution?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Peter, 2020-02-18
@rain139

add the -y switch at the end of the command line?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question