I see some code exp_send -i $bash_id "/bin/tcsh", what does the -i flag means? what is the meaning of -i flag after the exp_send?
I see some code exp_send -i $bash_id /bin/tcsh , what does the -i flag
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Expect allows you to spawn multiple processes at once and then interact with them in a mixed way. This is a very powerful mechanism, but it does mean that when you are saying what to
exp_sendto orexpectfrom, you have to say what you are talking about. That is done by using the-iflag to specify the spawn id, which is returned byspawnwhen a subprocess is created.When there’s only a single subprocess, the
-ican be omitted as the globalspawn_idvariable is used by default.