Add CopyStorm/JobRunner to a Scheduler

This article explains how to add CopyStorm/JobRunner to your system scheduler so it will run unattended on a schedule you specify.

Step 1: Create a CopyStorm/JobRunner Command Line

The first step is to create a CopyStorm/JobRunner command that can be successfully ran from the command line. The easiest way to do this is to open the Job Runner tab in the CopyStorm GUI and copy the command already generated:

It is a good idea to put the command line into a script file. Within this documentation, the script was put into a file named:

  • Windows: C:\bin\MyCopyStormJobRunner.bat
  • Linux/Mac: /usr/local/bin/MyCopyStormJobRunner.sh

The next two sections describe the steps to follow on Linux/Mac and Windows. The only things the two procedures have in common are:

  • The CopyStorm/JobRunner is scheduled to run every 10 minutes. If there is nothing to do it takes less than a second to run. This is perfectly safe for two reasons:
    • Multiple CopyStorm/JobRunner jobs will not interfere with each other.
    • The limit on the maximum number of jobs to run at any one time is enforced across all running CopyStorm/JobRunner instances.

Step 2: Linux/Mac Only: Add MyCopyStormJobRunner.sh to CRON.

For more information about Crontab formats or background information on the cron scheduler, see the Wikipedia page for cron.

Use the command “crontab -e” and add an entry for MyCopyStormJobRunner.sh.

An entry to run CopyStorm/JobRunner every 10 minutes would look like:

  • 0,10,20,30,40,50 * * * * sh /usr/local/bin/MyCopyStormJobRunner.sh

Step 3: Windows Only: Add MyCopyStormJobRunner.bat to the Windows Scheduler.

Find and open the Windows Scheduler.

Open the Create Basic Task wizard.

Enter basic information about the task.

Indicate when the task will run. Within the wizard this will be Daily. After the wizard completes we will change this to every 10 minutes.

Tell the scheduler to run our script — MyCopyStormJobRunner.bat.

On the next page, the confirmation page, click on “Finish” and the job will be scheduled. The next task is to change the job interval to every 10 minutes.

Open the Task Editor for the newly created task.

Open the trigger schedule for editing.

Update with the following parameters and save your work. This will cause CopyStormJobRunner.bat to be scheduled to run every 10 minutes (forever).