i have embedded board access board's serial port. run/type command in board. want automate task. want write script executes , run command itself. script should wait previous command finish.
i know software "securecrt" can not free.
edit: embedded board remote computer. so, using python command first logging in board , trying run commands.
my code looks this.
import os import time os.system("sudo minicom usb"); time.sleep(1); #os.system("<some_command_on_remote_computer>"); os.system("ls -a"); time.sleep(1);
minicom usb shows serial port output of embedded board. debug prints of port coming on port. so, using "sudo minicom usb" command, able log in embedded board after can't run "ls -a" command on embedded board.
i came acroos paramiko package works on ssh, can't figure out how use problem.
forget trying control command prompt terminal program, use pyserial module open serial port , send data directly.
Comments
Post a Comment