Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » MobiLink - Server-Initiated Synchronization » Listener Utility » Listener syntax

Listener syntax Next Page

Action variables


The following Windows Listener action variables can be used anywhere in the action or altaction.

An action variable is substituted just before the action or altaction is performed.

Listener action variables start with a dollar sign ($). The escape character is also a dollar sign, so to specify a single dollar sign as plain text, type $$. For example, type $$message_start when you don't want $message_start to be substituted.

Action variable

Description

$subjectThe subject of the message.
$contentThe content of the message.

$message

The entire message, including subject, content, and formatting that is specific to the delivery path.

$message_start

A portion of the text of the message from the beginning, as specified in -l message_start. This variable is only available if you have specified -l message_start.

$message_end

The part of the message that is left over after the part specified in -l message_start is removed. This variable is only available if you have specified -l message_start.

$ml_connectThe MobiLink connection parameters specified by the mlsrv10 -x option. The default is an empty string.
$ml_userThe MobiLink user name as specified by dblsn -u, or the default name (device-name-dblsn).
$ml_passwordThe MobiLink user name password as specified by dblsn -w, or the new MobiLink user name password if -y is used.

$priority

The meaning of this variable is carrier library-dependent.

$request_idThe request ID that was specified for the push request. See Push requests.
$remote_idThe remote ID. This variable can only be used when the dblsn -r option is specified. See Filtering by remote ID.

$sender

The sender of the message.

$type

The meaning of this variable is carrier library dependent.

$year

The meaning of this variable is carrier library-dependent.

$month

The meaning of this variable is carrier library-dependent. Values can be from 1-12.

$day

The meaning of this variable is carrier library-dependent. Values can be from 1-31.

$hour

The meaning of this variable is carrier library-dependent. Values can be from 0-23.

$minute

The meaning of this variable is carrier library-dependent. Values can be from 0-59.

$second

The meaning of this variable is carrier library-dependent. Values can be from 0-59.

$best_adapter_macThe MAC address of the best NIC for reaching the MobiLink server that is specified in the dblsn command line with the -x option. If the best route does not go through a NIC, the value is an empty string.
$best_adapter_nameThe adapter name of the best NIC for reaching the MobiLink server that is specified in the dblsn command line with the -x option. If the best route does not go through a NIC, the value is an empty string.
$best_ipThe IP address of the best IP interface for reaching the MobiLink server that is specified in the dblsn command line with the -x option. If that server is unreachable, the value is 0.0.0.0.
$best_network_nameThe RAS or dialup profile name of the best profile for reaching the MobiLink server that is specified in the dblsn command line with the -x option. If the best route does not go through a RAS/dialup connection, the value is an empty string.
$adaptersA list of active network adapter names, each separated by a vertical bar ( | ).
$network_namesA list of connected RAS entry names, each separated by a vertical bar ( | ). RAS entry names are sometimes referred to as dial-up entry names or Dial-Up Network (DUN).
Example

For example, if a message arrives in the form message_start pub-name, you can use the following $message_end action variable to determine which publication to synchronize:

-l "message_start=message_start;action='dbmlsync.exe -c ... -n $message_end'"