Beyond FTP Feature Tour
Beyond FTP Script
Editor - Queue_Distribution Command
Back
to Feature Tour


There are two variants of the Queue_Distribution command.
One allows you to run other scripts or distributions on any Beyond FTP
server that allows such actions. This provides a way to “chain” to other
scripts. The second variant allows you to rerun the current distribution at
a later time. This can be programmed to stop after a certain number of
retries, or to continue indefinitely.
A parent script can queue either the script source (ending in .ISF) or the
compiled distribution (ending in .DCF). Scheduling the script source
instructs Beyond FTP to first compile the script before running it.
Scheduling the compiled distribution simply runs the existing compiled
version.
Normally, a child script runs independently of the parent script. You can
instruct the parent to wait for the child script to run and complete by
including the optional wait time clause following the script name.
The Requeue variant provides great flexibility in managing the way a script
processes. However, should the script fail in a manner that it does not
execute one of these commands, it will not repeat. It usually makes sense to
combine the Repeat_Time command with the Requeue variant of
Queue_Distribution to achieve the kind of schedule you want with fail-safe
operation.
Example:
:Queue_Distribution: d:\program
files\beyond ftp\scripts\GetReports.Isf
:Queue_Distribution: {Central}d:\program
files\beyond ftp\GetReports.Dcf, 5
:Queue_Distribution: ReQueue, 1, 5
Back
to Feature Tour

|