Responding to a message in the script

Welcome Forums General PowerShell Q&A Responding to a message in the script

Viewing 0 reply threads
  • Author
    Posts
    • #221634
      Participant
      Topics: 1
      Replies: 0
      Points: 12
      Rank: Member

      Hello,

      I would like to write a script that responds to a specific message.
      Example: echo “reboot” | ssh user@ip
      Returns the message “user@ip’s password:”
      After the message is displayed, the script should enter a specific value.


      Unfortunately, I don’t know how to achieve it.

Viewing 0 reply threads
  • You must be logged in to reply to this topic.