vekenagwa Posted February 8, 2015 Posted February 8, 2015 To give a little backstory, I am a Network Tech and a novice programmer. Recently decided to start learning Autoit to automate some of my troubleshooting. Yes I know they already have tools out that do most of that, I just really want to build something myself. What I am looking for: Need a UDF or some kind of guidance as to interacting with commandline, I use a program called plink which is a commandline based console for putty. I can already code to send commands etc to commandline but I need to add functionality for reading the text that is displayed with each sent command etc. e.g. If I run a command that lists all configurations on a system I need my script to read and capture that output and save it else where. The problem I'm having with both putty and plink is the text displayed is not visible to the script. Can anyone point me in the right direction for either further research or a solution? Thank you Vek
water Posted February 8, 2015 Posted February 8, 2015 Welcome to AutoIt and the forum! Did you search the forum for plink? There are plenty of threads discussing this subject. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
susserj Posted October 16, 2015 Posted October 16, 2015 I wrote a UDF called "plinkwrapper" to do this type of activity, several years ago, for a group I used to work for. It is still being used today and has likely saved them many hours of labour.Cheers
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now