Sign in to follow this  
Followers 0
CmdrVimes

Disconnecting plink Serial connection

4 posts in this topic

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



Did you get a way to do this ?

I'm also looking for disconnecting plink serial connection

 

thanks !

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

The OP hasn't been online in four years, so you aren't likely to hear from him. o:)

Suggest that you start a new thread and repost your question with specifics of what you are trying to accomplish and some example code showing how you've attempted to solve it.

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  
Followers 0