编写新的脚本。
ScriptInfo.dat 文件的格式遵循标准的配置文件格式。
slice:attribute=value
将新脚本复制到 ScriptInfo.dat 文件中。
ScriptInfo.dat 文件位于以您的用户名标识的目录中,如下所示:
/var/opt/SUNWsymon/SysMgmtPack/script-launcher/scripts/username/ScriptInfo.dat
如果此文件中已经包含脚本信息,请将您的脚本添加到当前信息的下面。
以下 ScriptInfo.dat 文件示例包含两个脚本。
Script1:Owner = Scott Script1:Name = MyHello Script1:Desc = Says Hello Script1:Language = Java Script1:Source = Hello.class Script1:AdminStat = 1 Script1:OperStat = 1 Script1:Users = Noble Script1:Group = Staff Script2:Owner = Denise Script2:Name = MyFile Script2:Desc = Says Hello Script2:Language = Java Script2:Source = Hello.class Script2:AdminStat = 1 Script2:OperStat = 1 Script2:Users = Noble Script2:Group = Staff