Question

Lors de l'installation des paquets dans un environnement linux je peux définir l'option automatique «oui, par exemple

yum -y install ...

ou

apt-get -y install...

Y at-il un moyen de faire la même chose mais pour les programmes « .run ». Par exemple, comme,

sudo sh a.run -y

Alors que chaque fois qu'il demande oui / non, il sélectionne automatiquement oui, chaque fois qu'il demande ok / annuler ok sélectionne, et ainsi de suite ...

Merci beaucoup à l'avance !!!

Était-ce utile?

La solution

No, a .run command is simply a set of commands that are going to be run by sh. A particular .run file might take a -y option but in general you can't count on it. If you need to automate some stuff, consider using Expect.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top