Knowledge Base

Enter search queries below or use the tag links to the right to browse the knowledge base by category (Show All Tags).


How do I schedule a script to run on the first Monday of every month?

Robo-FTP 3.9 and Previous

Robo-FTP's built-in CRON scheduler is very flexible. It is very helpful in cases where your scheduling requirements are more fine-grained than can be met with the Windows Task Scheduler.

The heart of the CRON scheduler is the crontab configuration file.

The crontab file is a text file with one row for each scheduling condition. Each row contains five scheduling fields and an optional sixth command field that is stored in the %nextcmd variable when that scheduling condition is met.

Please see the Robo-FTP Help file for complete explanations of the crontab file format and how to use the CRON command to schedule scripts with Robo-FTP.

Here is a sample crontab file that can be used to launch a script on the first Monday of every month:

 #min  #hour  #day of month  #month  #day of week  #command
 0     0      1-7            *       Mon           call "myscript.s"

This sample crontab file would result in the script being launched at midnight. You can update the minute and hour fields as needed.

Robo-FTP 3.10 and Later

The above CRON command still exists in Robo-FTP 3.10 and later. However, we recommend using Robo-FTP's new built-in scheduler that provides a simple graphical user interface for scheduling. You can configure the scheduler from the "Scheduler" page in the Robo-FTP Configurator.

You can schedule a script to run on the first Monday of every month by choosing the "Monthly on a specific date or week" option from the Schedule tab, then choosing the "Run on a specific week or date(s)" option. From there, you can choose the "Week" option and select "First" and "Monday".

See the Help file for detailed instructions on using the built-in Robo-FTP Scheduler.

Robo-FTP Scheduler

Article last updated: 2021-11-26

Tags: CRON, Crontab, scheduling