how to pass keyboard input along to linux command?

后端 未结 3 1338
一个人的身影
一个人的身影 2020-12-16 20:55

I run a linux command that sometimes asks for user input (press 1 or 2).

I always want to answer 1, how can I pass this value automatically ?

3条回答
提交回复
热议问题