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
Post a Comment