Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Working with putty
#1
Solved: 10 Years, 9 Months ago
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.
Reply
#2
Solved: 10 Years, 9 Months ago
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.
Reply
#3
Solved: 10 Years, 9 Months ago
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.
Reply
#4
Solved: 10 Years, 9 Months ago
We never faced this issue related to port number. You can google it, and see if you get some help.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  QTP(UFT) and putty hachem 0 3,689 03-03-2015, 05:16 PM
Last Post: hachem
  QTP 11 and Putty objects not recognized jparson11 2 5,754 06-29-2011, 01:07 AM
Last Post: jparson11
  Cannot identify Windows (Putty) object in QTP - Error kharini 2 5,555 08-30-2010, 11:35 AM
Last Post: venkatbatchu
  open Putty via QTP Rachna 3 12,274 01-05-2010, 08:54 PM
Last Post: rdemers25

Forum Jump:


Users browsing this thread: 1 Guest(s)