Skip to content

SSH expect #30

@LianelLars

Description

@LianelLars

If i do:

#main_file.nim
import shell

shell:
  "ssh [email protected] 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? :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions