Okay having read that it makes more sense what the question is. I guess for me I would just make switch over day a Wednesday and do it when I got to the office, repeat on Thursday. That's again because all the command stuff goes right over my head for the most part.
OP how often are you hoping to receive some mining rewards, small or otherwise?
The whole point of using
command stuff is precisely to not do it by yourself all the time. That's precisely what sysadmins do: automate, automate, automate. The computers are meant to do the job for you, not the other way around...
As for his intention, he wants to mine normally every 6 days, and play lottery on the 7th. Given the chances of actually finding a block by yourself with such a low hash-rate i wouldn't personally bother, but to each their own...
Crontab is the text file most *nix like OSes use for scheduling tasks. Its rather mundane and standard. Thankfully Asic miner units tend to use Linux, such as
OpenWrt in their controllers, so doing these automated tasks from within the miner itself becomes trivial.
A crontab file looks like this:
#--------------------------------------------------
# example unix/linux crontab file format:
#--------------------------------------------------
# min,hour,dayOfMonth,month,dayOfWeek command
#
# field allowed values
# ----- --------------
# minute 0-59
# hour 0-23
# day of month 1-31
# month 1-12 (or names, see below)
# day of week 0-7 (0 or 7 is Sun, or use names)
#
#--------------------------------------------------
# run the drupal cron process every hour of every day
0 * * * * /usr/bin/wget -O - -q -t 1 http://localhost/cron.php
# run this apache kludge every minute of every day
* * * * * /var/www/devdaily.com/bin/check-apache.sh
# generate links to new blog posts twice a day
5 10,22 * * * /var/www/devdaily.com/bin/mk-new-links.php
# run the backup scripts at 4:30am
30 4 * * * /var/www/devdaily.com/bin/create-all-backups.sh
# re-generate the blog "categories" list (four times a day)
5 0,4,10,16 * * * /var/www/devdaily.com/bin/create-cat-list.sh
# reset the contact form just after midnight
5 0 * * * /var/www/devdaily.com/bin/resetContactForm.sh
# rotate the ad banners every five minutes
0,20,40 * * * * /var/www/bin/ads/freshMint.sh
5,25,45 * * * * /var/www/bin/ads/greenTaffy.sh
10,30,50 * * * * /var/www/bin/ads/raspberry.sh
15,35,55 * * * * /var/www/bin/ads/robinsEgg.sh
If you go to
https://crontab.guru/ you get a realtime translation of the meaning of those "strange looking" lines. Its just what wikipedia says:
# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of the month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12)
# │ │ │ │ ┌───────────── day of the week (0 - 6) (Sunday to Saturday;
# │ │ │ │ │ 7 is also Sunday on some systems)
# │ │ │ │ │
# │ │ │ │ │
# * * * * * command to execute
Then there is the command you actually want to execute, in this case copy a file into another:
cp /root/cgminer.pool1.conf /etc/cgminer.conf and
cp /root/cgminer.pool2.conf /etc/cgminer.confSimilar to
papampi's post.
End result should be something like:
0 0 * * 3 cp /root/cgminer.pool1.conf /etc/cgminer.conf && /etc/init.d/cgminer reload
0 0 * * 4 cp /root/cgminer.pool2.conf /etc/cgminer.conf && /etc/init.d/cgminer reload
This will overwrite
cgminer.conf with the contents of
cgminer.pool1.conf on Wednesdays, and the contents of
cgminer.pool2.conf on Thursdays at 0:00 (12am).
If you pay attention, The
Command Line Interface is easier than a
Graphic User Interface, on a magnitude of scale for most tasks. Edit a text file, vs the dreaded registry, or a simple command line vs open window, click here, scroll bar, click tab, go back, unset radio button, next tab, etc...
Of course you can combine both and use the most efficient one for each task.