i'm new with expect. i wanted to ask how can i execute a command but without plot to the screen the command itself.
for example:
expect "*?>"
send "echo done"
expect "*?>"
without plotting to the screen "echo done" but ONLY "done".
Thank you.
i'm new with expect. i wanted to ask how can i execute a command but without plot to the screen the command itself.
for example:
expect "*?>"
send "echo done"
expect "*?>"
without plotting to the screen "echo done" but ONLY "done".
Thank you.
Try something like this:
if {[info exists tty_spawn_id]} {
stty -echo
}
log_user 0
...
send_user "done"