Appendix H: CRON Script Command Reference
AXIS 200 User’s Manual
98
Example
1
Example
2
reset
This command resets the software or hardware of the AXIS 200.
Syntax
reset [-soft] [-hard];
Options
-soft
Reinitiates the AXIS 200 protocols.
-hard
Performs a complete reboot of the AXIS 200.
# This command will dial up a modem with number
# aNumber, and login with username aUser and
# password aPass. It will first wait for the
# string ‘ogin: ’ and send the username. It
# will then wait for the string ‘ass: ’ and send the
# password.
* * * * * /I1:
online -dial aNumber -user aUser -pass aPass
-script “‘’ ‘ogin: ’ $(USER) ‘ass: ’ $(PASS)”;
%
# This command will dial up a modem and wait for
# the prompt string ‘>’. It will then send the
# string ‘ppp defaults’. If the session has not
# terminated after 5 minutes and 30 seconds, the
# AXIS 200 will be restarted.
* * * * * /B:
online -dial 5551234 -user bob -pass dylan
-timeout m5s30 -script “‘’ ‘>’ ‘ppp defaults’ ”;
%