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 to which you have connected.
| 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 admin@system and the password jagpass, and shuts down the server.
Command line:
jagtool -h eclipse -n 9005 -u admin@system -p jagpass shutdown
Ant build file:
<jag_connect host="eclipse" port="9005" user="admin@system" password="jagpass" /> <jag_shutdown />