Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Your questions: </p> <ul> <li><p><strong>Where do I put this part, which tells it to save the data to a log?</strong></p> <p>You edit your crontab file to add a cron entry. The cron entry contains information regarding what command to run and when to run it. For example, here is a cron entry that you might use:</p> <p><code>0 2 * * * /usr/bin/time -a ~/output.log ~/uploadtimer.sh</code></p> <p>This entry says to run the command at 2AM every day (minute 0, hour 2, every day of the month, every month, every day of the week). For more info on the crontab syntax, you can check out <a href="http://www.adminschoice.com/docs/crontab.htm" rel="nofollow noreferrer">http://www.adminschoice.com/docs/crontab.htm</a> .</p> <p>To make a cron entry, use the command <code>crontab -e</code> which will load up a vi text editor. Enter the line above and then save it. This creates the cron job. If you don't know vi, just follow this:</p> <ul> <li>from the shell, enter <code>crontab -e</code> to start editing</li> <li>press <kbd>i</kbd> to enter Insert mode</li> <li>enter the line as above</li> <li>press <kbd>ESC</kbd> to exit Insert mode</li> <li>press <kbd>:</kbd> to switch to Command mode - you will see the cursor at the bottom of the screen</li> <li>enter <kbd>wq</kbd> and hit <kbd>Enter</kbd> - this <strong>W</strong>rites and <strong>Q</strong>uits the file. You should see a message like <code>crontab: installing new crontab</code>. <p></li> </ul> <p>If you run into any problems using vi, use <kbd>ESC</kbd> a few times to exit whatever mode it's in, do <kbd>:</kbd> to enter Command mode, and then <kbd>q!</kbd> to force a quit (i.e., quit without saving anything), and then try again from the beginning.</p></li> </ul> <p><p></p> <ul> <li><p><strong>It refers to the script itself so does it need to be separate from the script?</strong></p> <p>Yes.</p></li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload