T100 - Using Application Integration to integrate Terminal Emulator program e.g. Putty |
Task Description |
Often businesses need to get data from application windows that have no way of getting data. For such cases, Automation Anywhere features App Integration.
This task checks if a user has logged in successfully to a FTP server using Putty. It captures data from Putty application window and checks for the string ‘logged in’ to ensure the user is logged in successfully.
T100.atmn
Note: Save the .atmn file in My Documents -> Automation Anywhere -> Automation Anywhere -> My Tasks
|
| Solutions |
 |
Connect to remote machine using Putty
- Insert ‘Open Program/files’ command.
- Type path of putty exe for e.g. ‘C:\puttytel.exe’.
- Double click on Manage Windows Control command found under ‘Programs/Windows/Files’ command category, select Putty application window, capture ‘Host Name’ of the Textbox and ‘Set Text’ option specify the machine name for e.g. ‘Pc9’
- Double click on Manage Windows Control command, select Putty application window, capture radio button of ‘Telnet’ and select ‘Select the Radio button’ option.
- Double click on Manage Windows Control command, select Putty application window, capture ‘Open’ button and select ‘Click’ option.
|

Screenshot 1

Screenshot 2

Screenshot 3

Screenshot 4

Screenshot 5

Screenshot 6

Screenshot 7

Screenshot 8

Screenshot 9
|
 |
Login to FTP server using Putty
Insert necessary keystrokes commands to login to ftp server. |
 |
Use ‘App Integration’ command to capture the data in Putty window
Double click ‘App Integration’ command under ‘Integration Pack’ command category, select ‘Other’ from drop down of Application, select window of putty application, click on ‘View Captured Text’ window and select ‘Prompt-Assignment’ from the variable drop down. |
 |
Using ‘If’ command check if user is logged in successfully
- Double click on ‘If’ command found under ‘Conditions/Loops’ command category, select ‘Variable’ option and click on ‘Edit’ button, insert ‘Prompt-Assignment’ using F2 key, select ‘Includes’ option from the drop down, select ‘Fix’ option and type ‘logged in’ in text box.
- You can put this command inside ‘Loop times’ command to repeat the action in case the system takes time to login.
- Insert ‘Exit loop’ command inside if command if ftp server is connected.
|
 |
How to run the task
- In case you do not have Automation Anywhere installed, please download and install it from, http://www.automationanywhere.com/download/freeTrial.htm
- Save T100.atmn under location, My Documents\Automation Anywhere\Automation Anywhere\My Tasks
|
|
To run this task edit the commands and make necessary changes related to ftp server and putty exe path.
When we run this task it opens putty application; enter user name and password necessary to login to ftp server and capture the text and checks if it contains ‘logged in’ maximum five times until the ftp server is logged in successful. |
|
 |
| We started using this product to copy data from legacy system to new system. Now we use it just to do about anything automated. Countless hours saved. Thank you guys. |
- Jack Greenberg
|
| Read Customer Testimonies >> |
|