PAUSE        Time delay script execution

<< Click to Display Table of Contents >>

Navigation:  Robo-FTP User's Guide > Script Programming > Script Commands > All Script Commands >

PAUSE        Time delay script execution

Syntax:

PAUSE

[  options ]

Arguments:

none

 

Options:

/for=xx

Delay execution for xx seconds.

 

/until=hh:mm

Delay execution until this time-of-day expressed in 24 hour military time (hours 00 to 23.)

 

 

This script command suspends the execution of a script file for a specified number of seconds or until a specific time-of-day. More extensive scheduling capabilities are offered with the CRON script command.

 

For an overview of Robo-FTP scheduling, see Scheduling File Transfers With Robo-FTP.

 

The PAUSE command is best suited for use in a script file associated with a one-time event, where you start the script running and it waits until the specified time to continue processing. A simple service script could combine the PAUSE and GOTO commands to create a basic loop to repeat the event.

 

Consider the following example in which script execution is delayed until 5:00PM.

 

PAUSE /until=17:00

 

 

Related command(s): CRON, PRESSANYKEY

See also: Scheduling Script Operations, Scheduling File Transfers, Programming Service Scripts