linux - expect for non-interactive sessions -


i'm using docker container. need send bash commands container through expect script dont want console opened.

#!/usr/bin/expect set cont_name [lindex $argv 0]; spawn docker attach vont1 send "netconfd&\n" interact 

the problem need achieve without opening console.if remove interact i'm not able send commands container. there way send commands container(bash shell) without interact should executed in background.


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -