Shuts down the server to which you are connected.
shutdown connect-args
Where connect-args is a list of arguments to connect to the server, as described in “Using connected mode”.
<jag_shutdown />
Like all commands, shutdown requires connection flags at the command line and the jag_connect command in Ant build files (see “Using the jag_connect command”). shutdown terminates the server process that you have connected to.
Return value |
Indicates |
---|---|
0 |
The command ran successfully; the result is true/success. |
2 |
The command did not run successfully; an exception was thrown. |
This example connects to the server eclipse on port 9005, with the user name jagadmin and the password jagpass, and shuts down the server.
Command line:
jagtool -h eclipse -n 9005 -u jagadmin -p jagpass shutdown
Ant build file:
<jag_connect host="eclipse" port="9005" user="jagadmin" password="jagpass" /> <jag_shutdown />
Copyright © 2005. Sybase Inc. All rights reserved. |