If i do:
#main_file.nim
import shell
shell:
"ssh user@1.1.1.1 whoami"
expect: "password:"
send:"my_password"
nothing happend. But if i do:
#first_file.nim
import shell
shell:
./second_file
expect: "something"
send:"i send info"
#second_file:
echo "Enter something"
let a: string = readLine(stdin)
echo "Entered: ", a
Everything works correctly.
Soooo.... is it have to working like that? :)
If i do:
nothing happend. But if i do:
Everything works correctly.
Soooo.... is it have to working like that? :)