You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

19 lines
870 B

#!/bin/sh
# Power on MCH
python3 ~/power_strip/on.py
# Get power-on time & date
TIMESTAMP=$(date '+%Y%m%d%H%M%S')
# Start `screen`ing Metlino and Saymas in detached mode and with logging
sleep 1
screen -dmS metlino -L -Logfile /home/pi/mlabs-testsuite/logs/metlino-$TIMESTAMP.log /dev/metlino 115200
sleep 6
screen -dmS sayma1amc -L -Logfile /home/pi/mlabs-testsuite/logs/sayma1-$TIMESTAMP-amc.log /dev/sayma1AMC 115200
screen -dmS sayma1rtm -L -Logfile /home/pi/mlabs-testsuite/logs/sayma1-$TIMESTAMP-rtm.log /dev/sayma1RTM 115200
screen -dmS sayma2amc -L -Logfile /home/pi/mlabs-testsuite/logs/sayma2-$TIMESTAMP-amc.log /dev/sayma2AMC 115200
screen -dmS sayma2rtm -L -Logfile /home/pi/mlabs-testsuite/logs/sayma2-$TIMESTAMP-rtm.log /dev/sayma2RTM 115200
echo "New logs has started at time $TIMESTAMP."
# This Shell script ends after spawning the `screen` sessions