this is my attempt, it doesn't kill the ssr process at end.
i don't have a list of parameters to pass to
start recording, save the file to disc and exit the ssr,
so i made it partially manual.
i have 8GB RAM so i expect at least 6hrs recording in memory, which is enough
#!/bin/sh
# Test if in timeframe
repeat:
if (19:20<(date +%H:$M)<23:05);
#y=start chrome and ssr, manually set record
(Google* , simplescreenrecorder
#at end of time, save file or wait if not end
if (2300<(date +%H:$M));
(cp /mnt/sda4/*.mkv /mntsda4/Watch/*.mkv) (sleep 15 );
(repeat);
fi );
#turn off smallscreenrecoder and wait for next session
(killall 22994[?] , sleep 5 ,repeat);
fi