vekenagwa

UDF for Commandline interaction and control.

3 posts in this topic

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

Share this post


Link to post
Share on other sites



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 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now