 |
Create new task
- Click on New -> Task Editor.
|

Screenshot 1

Screenshot 2

Screenshot 3

Screenshot 4 |
 |
Insert service command to ‘Get Service Status’
- Drag and drop services command.
- Select ‘Get service status’ option.
- Select Telnet service from the list.
- Select the variable from the list.
- Save the command.
|
 |
Enter if condition to check whether the service is started or not.
- Select $Prompt-Assignment$ in variable.
- Select Equal to operation.
- Select ‘Fix’ option.
- Type ‘SERVICE STOPPED’
- Save the command.
|
 |
Insert services command to START service
- Drag and drop services command.
- Select ‘Start service’ option.
- Select Telnet service from the list.
- Save the command.
|
 |
Enter Else if condition to check the service is paused or not.
- Select $Prompt-Assignment$ in variable.
- Select Equal to operation.
- Select ‘Fix’ option.
- Type ‘SERVICE PAUSED’
- Save the command.
|
 |
Insert services command to Resume Service
- Drag and drop services command.
- Select ‘Resume service’ option.
- Select Telnet service from the list.
- Save the command.
|
 |
Insert all terminal commands which you want to run |
 |
Insert stop services command
- After all the terminal commands put stop service command.
- Drag and drop services command.
- Select Stop service status option.
- Select Telnet service from the list.
- Save the command.
|
 |
Save and Run the task
When you run this task, telnet service is started if it is not already started or paused. The service stops after executing all terminal commands. |
 |
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
- Download T99.atmn to location, My Documents\Automation Anywhere\Automation Anywhere\My Tasks
- Launch Automation Anywhere and from Task List select T99.atmn and click on RUN button to run the task.
|