I am trying to write the time in a screen in shell script, however, I am extremely inexperienced with the
screen command. Thus, apologies for my mistakes.
I have a transmitter that operates in a screen created by the shell script I wrote, as follows:
screen -S trans -L /dev/ttyACM0 screen -S trans -X stuff 's'$(echo -ne '\015') sleep 8s screen -S trans -X quit
I am not quite sure what the second line is echoing. Nevertheless, this code produces a
screenlog.0 file at the end of the process, and my goal is to write the time (
$(date)) at the end of this file. Thank you.