kermit

How can I get kermit script to accept arguments and connect to serial device

我只是一个虾纸丫 提交于 2019-12-12 06:59:55
问题 I wrote the following in a kermit script to connect to my serial device: #!/usr/bin/env kermit set port /dev/ttyUSB8 set speed 115200 set carrier-watch off set flow-control none set prefixing all set input echo on It does the job pretty well. Now, I want to make this a generic script and would like to take the input from the user which port he wants to connect. So, I thought taking input as a commandline argument is the best way to do. And I modified the above in the following way: #!/usr/bin