Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

execute commands via Go Lang on Windows

@author Arjun Dhar
@see https://golang.org/pkg/os/exec/#Command

A simple Go utility to execute a command. In this Exmaple a windows command.

The example executes a tashark utility installed to sniff packets over an IP.

It assumes tshark is installed @ C:\installed\Wireshark\. Change path and flags based on the utility you want to use.

The utility clarifies running non CMD commands and also how to pipe the output while running without waiting to finish.

Build

Build command: go build -o my-runner.exe .\RunCommand.go

Run

Simply...

myrunner.exe