开发者

install ".run" programs with automatic yes/ok/... option

开发者 https://www.devze.com 2023-03-12 10:03 出处:网络
When I install packages in linux environment I can set the automatic \'yes\' option, for example yum -y install ...

When I install packages in linux environment I can set the automatic 'yes' option, for example

yum -y install ...

or

apt-get -y install...

Is there a way to do the same but for ".run" programs. For example as,

sudo sh a.run -y

So that whenever it asks yes/no it automatically selects yes, whenever it asks for ok/cancel it selects ok, and so on...

tha开发者_如何学JAVAnks a lot in advance!!!


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消