通过使用以下命令,您可以从命令行接口调用 AutoShell:
caaipaomautoshell.exe [-U username] [-P password] [-h host] [[-f] scriptfile] [scriptargs]] [-e expr] [-i]
指定有效的 CA Server Automation 用户。 您还可以使用 CAASUSER 环境变量来设置用户名。
指定该用户的密码 您还可以使用 CAASPASS 环境变量来设置密码。
(可选)使用可选的脚本参数加载指定的脚本文件。 此参数可以多次使用。
(可选)评估指定的表达式。
(可选)在加载脚本之后进入交互模式。
(可选)指定 IS0 639_3166 组合(例如:法语为 fr_FR)以覆盖默认的英语输出。 要使用命令提示符的区域设置,请指定“native”。
示例
运行 hello.js 脚本:
caaipaomautoshell.exe -U vaimuser -P topsecret -f hello.js
计算 4*3 的值:
caaipaomautoshell.exe -U vaimuser -P topsecret -e 4*3
为用户名和密码设置环境变量并且计算 sin(PI/2) 的值:
set CAASUSER=vaimuser set CAASPASS=topsecret caaipaomautoshell.exe -e Math.sin(Math.PI/2)
版权所有 © 2013 CA。 保留所有权利。 |
|