Jump to content
Sign in to follow this  
CmdrVimes

Disconnecting plink Serial connection

Recommended Posts

I'm trying to connect to a serial port. I've been using PuTTY fine, but I want to be able to use Stdin and Stdout to access the data feed, so I'm trying to use plink. I've followed as much information as I can from here, but everybody just seems to use ssh and not serial.

Anyway, so far my script has just one line:

$plink = Run('C:\tools\PuTTY\plink.exe -serial COM1 -sercfg 9600,8,1,n,N')

When the script runs, the command prompt appears for a split second before vanishing again. I have almost no command-line experience so I've no idea whether I'm calling plink properly anyway, but no processes appear in task manager, so I don't know what's going on with it.

Share this post


Link to post
Share on other sites

in case the guy that made 9 posts 3 years ago doesnt show back up

run("cmd /c taskkill /f /IM Plink.exe ")

 


,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...