We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,464 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

VBscript send keys to Cygwin fails at ssh password

I had written a script to login to some terminals and do some basic commands remotely.

It fails at password entry.
*******************************************************************

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "cygwin"

' Give Cygwin time to load
WScript.Sleep 2000
a=Array(112)
For Each i In a
WshShell.SendKeys "`ssh user@XX.XX.XX.XX" & i & " 'hostname;ps aux' " & "{ENTER}"
WScript.Sleep 1000
WshShell.SendKeys "******" & "{ENTER}"
WScript.Sleep 2000

Next
***************************************************************
It's taking till password step fails very next.

I had double confirmed the password.

1
Contributor
0
Replies
1
View
amitshowry
Newbie Poster
1 post since Sep 2009
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page generated in 0.0776 seconds using 2.64MB