User Manual

Table Of Contents
Appendix H: CRON Script Command Reference AXIS 240 Users Manual
120
Syntax
offline;
online
This command dials up a modem and establishes a PPP connection.
Used together with the offline command.
Syntax
online [-dial NUMBER] [-user USERNAME -pass PASSWORD]
[-timeout TIME] [-script "send expect send expect ..."];
Options
-dial Specifies the phone number that will be sent to the modem as
ATDT<phone number>. The number cannot include spaces.
-user Specifies the user name used for authentication. Note that
spaces are not allowed in the user name. Optional.
-pass Specifies the password. Required if a user name is specified.
-timeout
Resets the AXIS 240 when the specified time limit has
exceeded. Format:
h<hours>m<minutes>s<seconds>.
Optional.
-script
Specifies an optional script string of expect-send pairs to be
sent over the line. This must be the last option in the
command.
If a send word is empty, i.e. if it contains single quotes (
‘‘),
nothing will be sent until the expect word is received.
For a login sequence, you can use the words
$(USER) and
$(PASS). They will be replaced by the arguments specified in
the
-user and -pass options, respectively.
If the string does not include an escape code, a carriage return
character will be appended automatically at the end of the
string. Valid escape codes are:
\r (carriage return), \n (line
feed) and
\t (tab).
At the end of the script, the AXIS 240 will enter the
negotiation phase.