Sikuli jython: Automate anything you see

Sikuli is a visual technology to automate and test graphical user interfaces (GUI) using images (screenshots). Sikuli includes Sikuli Script, a visual scripting API for Jython, and Sikuli IDE, an integrated development environment for writing visual scripts with screenshots easily. Sikuli Script automates anything you see on the screen without internal API’s support. You can programmatically control a web page, a Windows/Linux/Mac OS X desktop application, or even an iphone or android application running in a simulator or via VNC. Reference: http://sikuli.org/

Read more

PS: Services

Command to display services whose name matching given string PS C:> Get-Service | Where-Object {$_.DisplayName -match “citrix” } | ft Name, DisplayName Name                                                        DisplayName —-                                                        ———– CdfSvc                                                      Citrix Diagnostic Facility COM Server CdmService                                                  Citrix Client Network Citrix 64-bit Virtual Memory Optimization                   Citrix 64-bit Virtual Memory Optimization Citrix Encryption Service                                   Citrix Encryption Service Citrix EUEM                                                 Citrix End User Experiencing Monitoring Citrix Virtual Memory Optimization                          Citrix Virtual Memory Optimization CitrixHealthMon                                             Citrix Health Monitoring and Recovery CitrixWMIService                                            Citrix WMI Service CitrixXTEServer                                             Citrix XTE Server cpsvc                                                       Citrix Print Manager Service CTXCPUBal                                                   Citrix CPU Utilization Mgmt/CPU Rebalancer ctxcpuSched                                                 Citrix CPU Utilization Mgmt/Resource Mgmt IMAAdvanceSrv                                               Citrix […]

Read more

Using SED: Match RegEx pattern in multiple lines and combined the lines into sinlge line

gunnalag@GMD /cygdrive/c/Gunnalag/MyFiles $ grep -i -A1 -B1 “topbar.*” movie0715.html   <div id=”topbar”> <h2>Ragada&nbsp;&nbsp;<small><i></i></small>&nbsp;(December 24, 2010)&nbsp;&nbsp;&nbsp;<a href=#comment><small>Write A Comment</small></a></h2> — src=”../pagead2.googlesyndication.com/pagead/show_ads.js”> </script>                       </div> <!– End Of topbar –> <div id=”outer5″>   gunnalag@GMD /cygdrive/c/Gunnalag/MyFiles $ cat movie0715.html | sed -E -n ‘/”topbar”/{N; s/n//; p;}’ <div id=”topbar”>                           <h2>Ragada&nbsp;&nbsp;<small><i></i></small>&nbsp;(December 24, 2010)&nbsp;&nbsp;&nbsp;<a href=#comment><small>Write A Comment</small></a></h2>   gunnalag@GMD /cygdrive/c/Gunnalag/MyFiles $

Read more