REMOTECMD        Perform a script command received via COM port

Top  Previous  Next

Syntax:

REMOTECMD

[  options ]

Arguments:

none

 

Options:

/flush

Flush the receive buffer before starting read.

 

/timeout=nn

Time-out in seconds to wait for a command to be received; the default time-out is 30 seconds.

 

 

This script command reads characters from an open COM port in exactly the same manner as the LINEIN command. Rather than saving the characters in a variable, the characters are assumed to form a valid FileLink script command. REMOTECMD then does the equivalent of a PERFORM command on the character string.

 

For more information on how the characters are read see the description of the LINEIN command.

 

Consider the following example.

 

       ;; accept and perform a remote command

       REMOTECMD /timeout=10

 

This is equivalent to the following command sequence:

 

       LINEIN var /timeout=10

       PERFORM var

 

Related Command(s): LINEIN, LINEOUT, SENDCMD, PERFORM