#!/usr/bin/python # usage: reset_arduino # where is typically some /dev/ttyfoobar import sys import serial ser = serial.Serial() ser.port=sys.argv[2] ser.baudrate=1200 ser.open(); ser.close()