CoolTerm Linux Automation

If you have specific questions or problems with any of my Freeware applications, post them here.
Post Reply
chinchilla9
Posts: 1
Joined: Fri Nov 13, 2020 3:41 pm

CoolTerm Linux Automation

Post by chinchilla9 »

Hi,

I have a question about automating CoolTerm on Linux.

I would like to run some kind of script that automatically opens CoolTerm, connects to a serial device, sends a number, and then closes CoolTerm. How would I do this on Linux? I am on Ubuntu 18.04.

Thank you very much for the help!

-Chinchilla9
User avatar
roger
Site Admin
Posts: 430
Joined: Fri Apr 24, 2009 12:41 am
Contact:

Re: CoolTerm Linux Automation

Post by roger »

Hi,

CoolTerm is scriptable via Python. I suggest you take a look at some of the scripting examples that are included with CoolTerm.

However, if you don't need any particular CoolTerm features, and all you need is to send a string via the serial port, you can use the echo command and route the string to the serial port

Example: sending "Hello World" to the serial port with path /dev/ttyUSB0:

Code: Select all

echo -en "Hello Word" > /dev/ttyUSB0
I hope this helps

Roger
Post Reply