Jump to content

UDF for Commandline interaction and control.


Recommended Posts

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

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 - 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 (NEW 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

 

Link to comment
Share on other sites

  • 8 months later...

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...