Skip to content
Advertisement

Linux, Installation of FBX SDK, how to automatically confirm?

I am currently building a project in a (Singularity) container, and one of the dependencies is the FBX SDK (for building Qt static).

The problem is that the installer of FBX reads the licence conditions and then asks to confirm those, and as the installation by recipe don’t allow me answer manually, it produces an endless repetition of the lines

To continue installing the software, you must agree
to the terms of the software license agreement.

Type "yes" to agree and continue the installation. Agree [yes/no] ? 

Now I did some research into how to auto confirm such things and found How do I script a “yes” response for installing programs?.

Given the answers there, I tried the following lines:

yes | ./fbx20190_fbxsdk_linux
yes Y | ./fbx20190_fbxsdk_linux
echo yes | ./fbx20190_fbxsdk_linux

(Second line just in case, as the installer clearly wants a “yes”.)

None of those worked. Is there some other trick I could try? Or another way to install FBX?

(Note: the lines above do at least something, that is they automatically confirm File(s) will be extracted to: . Please confirm [y/n] ?)

Advertisement

Answer

…as the installer clearly wants a “yes”

In that case, try this:

yes yes | ./fbx20190_fbxsdk_linux

By default, the yes command does not send "yes" to the subsequent process, only y. You can override this behavior by giving a command line parameter as you did in your second attempt above. However, there you inokved it as yes Y which does not send a "yes" either, it sends Y.

The parameter to yes must be the string that you want to send to ./fbx20190_fbxsdk_linux, hence yes yes.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement