bash - passing arguments to an interactive program non interactively -


i have bash script employs read command read arguments commands interactively, example yes/no options. there way call script in non-interactive script passing default option values arguments?

it's not 1 option have pass interactive script.

for more complex tasks there expect ( http://en.wikipedia.org/wiki/expect ). simulates user, can code script how react specific program outputs , related stuff.

this works in cases ssh prohibits piping passwords it.


Comments

Popular posts from this blog

gridview - Yii2 DataPorivider $totalSum for a column -

java - Suppress Jboss version details from HTTP error response -

Sass watch command compiles .scss files before full sftp upload -