0

I have the following code, which is an expect script, I want to use mkdir to create a directory called input but I know that the command mkdir doesnt work in an expect script I would appreciate any help with this issue, I tried the folloging approach:

#!/usr/bin/expect
 expect "hello"
 send "world"
 mkdir input 
1

1 Answer 1

1

You don't need to use bash, just use TCL's built-in file mkdir command:

file mkdir input
Sign up to request clarification or add additional context in comments.

3 Comments

Thanks for the support, but I have one question more what is the diference if I use exec instead of file?
I have one question more mkdir is already integrated in any version of TCL or what is exactly TCL?
I assume it is. You should check the documentation for your version to make sure.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.