Get Suneido at SourceForge.net. Fast, secure and Free Open Source software downloads

(c) Suneido Software Corporation - Open Source Integrated Database and Programming Language

Support‎ > ‎Documents‎ > ‎

The Suneido Task Scheduler

 The Suneido Task Scheduler is similar to the Windows Scheduled Tasks. Some of the things we use it for:

  • nightly online backups
  • run automated tests nightly
  • email staff with weekly reminders about client birthdays and anniversaries
  • distribute Suneido mailing list messages every 5 minutes
  • fetch Suneido download registration emails, update our database, and send thank you emails

You can start the scheduler from the WorkSpace by running:

    SchedulerControl()

You should see something like this (without the tasks):

Schedule Window

To add new tasks, click on the Add button and fill in the Task Information:

Schedule Mailing List

You can edit a task by selecting it in the list and choosing Edit. To disable a task, check the Suspend Task checkbox. Or to delete a task completely, select it and choose Remove.

You can minimize the Task Scheduler to a taskbar icon using the Minimize button. When the scheduler is running as a taskbar icon, you can restore the window by double clicking on the icon, or access several options by single or right clicking on the icon:

Scheduler Icon Menu

If any errors occur while a task is running, or if a task does any Print's, the Scheduler Messages window will come up.

Scheduler Messages

You can leave the message window open, or if you close it, it will be re-opened if there are new messages.

To run the Scheduler from the command line (or Windows Startup) you can create a "go" file. For example, if you create a file called "email.go" like:

    Use("email.lib")
ScheduleControl(exitOnDestroy:)

Then you can run this with a command line like:

    suneido email.go

If you are running the Scheduler standalone, it's important to give the exitOnDestroy: argument so if you exit from the Scheduler it will exit from Suneido.