serial and bash script to test