Using administrative shell scripts

Administrative scripts may be used to automate operations that you might normally perform periodically with Sybase Central. The scripts can:

For example, you could use the scripts to synchronize secondary servers during the night.

The scripts start_server and sync_server are located in the database directory. On a Windows host, these scripts are .bat files. On UNIX, they are shell scripts. You can run these scripts from the command line in place of start_iq and dbbackup, respectively.

Open each script with a text editor to see comments about how to use it.

Scripts that require a password define it as an input parameter.

StepsCreating administrative scripts

  1. Right click the server

  2. Choose Generate Admin Scripts from the popup menu.

StepsScheduling administrative scripts (UNIX)

  1. You can use the crontab system utility to schedule administrative tasks.

StepsScheduling administrative scripts (Windows)

  1. Use Start > Settings > Control Panel > Scheduled Tasks to schedule the administrative tasks.