Expect: what is the meaning of "force_conservative", "set send_slow" and "--"? -


set force_conservative 1  ;# set 1 force conservative mode if               ;# script wasn't run conservatively if {$force_conservative} {     set send_slow {1 .1}     proc send {ignore arg} {         sleep .1         exp_send -s -- $arg     } } 

i dont understand force_conservative , statments set send_slow {1 .1} inside proc send not clear me.

also why -- needed send command

i don't understand trying accomplish script, here answers.

force_conservative parameter makes expect script pause 1 tenth of second before sending each character. done shell not ignore characters came quickly.

set send_slow {1 .1} same thing. make 100ms pause (second parameter) every 1 symbol (first parameter).

proc send {ignore arg} {         sleep .1         exp_send -s -- $arg } 

this code snippet doing same thing previous two. -- parameters used tell script add no more options, options delimiter.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -