Terminates and restarts the server process to which you are connected.
restart connect-args
Where connect-args is a list of arguments to specify a server connection, as described in “Using connected mode”.
<jag_restart />
| 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 restarts the server.
Command line:
jagtool -h eclipse -n 9005 -u jagadmin -p jagpass restart
Ant build file:
<jag_connect host="eclipse" port="9005" user="jagadmin" password="jagpass" /> <jag_restart />
All jagant commands depend on jag_connect. See “Using the jag_connect command” for more information about jag_connect.
| Copyright © 2005. Sybase Inc. All rights reserved. |   | |