vekenagwa Posted February 8, 2015 Share 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 Link to comment Share on other sites More sharing options...
water Posted February 8, 2015 Share 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 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
susserj Posted October 16, 2015 Share 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 Link to comment Share on other sites More sharing options...
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