While I might not use your restart script this weekend, it would be good to have in my back pocket... So I for one would appreciate it being posted here. Thanks - G
Save this as mine.bat in the same folder as the cgminer.exe you are trying to run. You will need to edit the part on the cgminer line with your pool and user info and also add any options you usually run, like asicboost. Once you see that it is working, you can add a shortcut to the .bat to your startup folder.
@echo off
:start
start cmd.exe @cmd /c "cgminer -o stratum+tcp://solo.ckpool.org:3333 -u 1zsmithbYtyrcZ2jAAYwZHyAy28zv7pUY -p x"
timeout 21600
taskkill /F /IM cgminer.exe /T
timeout 2
goto start
Can I run cgminer from separate directories to get 2 sessions to restart every 6 hours or is there different code for doing this?
If you have two versions installed that you can already run from the command line separately then yes. Just copy the line starting with 'gnome-terminal...' and paste it right after the first one, then edit the second line with your other second session command parameters. The pkill in the script should kill all child processes with that name.