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