You can invoke the AutoShell from a command line interface by using the following command:
caaipaomautoshell.exe [-U username] [-P password] [-h host] [[-f] scriptfile] [scriptargs]] [-e expr] [-i]
Specifies a valid CA Server Automation user. You can also set the user name by using the CAASUSER environment variable.
Specifies the password for that user. You can also set the password by using the CAASPASS environment variable.
(Optional) Loads the specified script file with its optional script arguments. This parameter can be used multiple times.
(Optional) Evaluates the specified expression.
(Optional) Enters interactive mode after loading scripts.
(Optional) Specifies an IS0 639_3166 combination (for example: fr_FR for French) to override the default English output. To use the locale of the command prompt, specify "native".
Examples
Run the hello.js script:
caaipaomautoshell.exe -U vaimuser -P topsecret -f hello.js
Calculate the value of 4*3:
caaipaomautoshell.exe -U vaimuser -P topsecret -e 4*3
Set the environment variables for username and password and calculate the value of sin(PI/2):
set CAASUSER=vaimuser set CAASPASS=topsecret caaipaomautoshell.exe -e Math.sin(Math.PI/2)
Copyright © 2013 CA. All rights reserved. |
|