Nvidia miners rejoice! I found a simple way to take advantage of the new ccminer v1.2 with X11 and X13 support and TMB's new algo profit switching feature!
I've been running this batch for about a day now with good results. The timing variables at the end may not be optimum, but seem to be working thus far. Any improvements to this technique are welcome of course.
Here's the simple technique I'm using in a windows batch file:
cd C:\Users\Public\Coin\Miners\ccminer-v1.2\x86\
:loop
ccminer.exe -a x11 -o stratum+tcp://west01.us.trademybit.com:4010 -u WebID.worker -p password -r 2 -R 3 -T 5
ccminer.exe -a x13 -o stratum+tcp://west01.us.trademybit.com:4011 -u WebID.worker -p password -r 2 -R 3 -T 5
goto loop
The idea here, is that only one of the above ports is open at a time, so when a port closes because it's no longer the most profitable algo, ccminer will exit and another ccminer with the other algo and port will start. The loop ensures that it keeps trying until it finds an open port regardless of which algo we're switching to.
I have noticed that when TMB switches (even if it's the same algo but a different coin) that the loop may repeat once or twice, but it always ends up mining the correct coin as soon as the port opens up. It's a little weird to watch, but it all happens pretty fast.
This is of course for Windows. I'm sure the same technique could be used in a script for Linux and I'm hoping some Linux guru will post an example here soon.