Micro Focus QTP (UFT) Forums
Working with putty - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Working with putty (/Thread-Working-with-putty)



Working with putty - testingcareers - 12-10-2010

Hi, I need to ssh to an appliance (i.e linux box or any unix flavour) and run a command. Is this possible in QTP. Can anyone throw some light on this.


RE: Working with putty - Amit Singh Chauhan - 12-10-2010

yes this is possible.

You need to create string (command you want to execute) and then run it by shell command.

Eg:
Code:
exeCommand = "C:\putty.exe cd/home UID@Server -pw PWD your unix command"

Set objShell = CreateObject("WScript.Shell")
objShell.Run exeCommand



for each command you need to create seprate commands and then execute them.


RE: Working with putty - testingcareers - 12-10-2010

Thanks Amit for the quick reply. I just tried the steps.
I got an Invalid Port no message, Is there any option to specify port number.


RE: Working with putty - Amit Singh Chauhan - 12-10-2010

We never faced this issue related to port number. You can google it, and see if you get some help.