BlPackage - addExternalCmdToEnd
This command adds an external command to the end of a BLPackage.
Return type : DBKey
Command Input :
Handle to the BLPackage.
Name of the external command.
Cmd script file for the external command. This file can be on a local or remote server.
UndoCmd script file for the external command. This file can be on a local or remote server.
Action on failure for the external command (Ignore, Continue, or Abort).
The following example adds an external command with name sampleExternalCmd to the end of a BLPackage. The content of the command is from C:/temp/cmd.txt and the content of the undo command is from C:/temp/undocmd.txt. The external command aborts on failure.
# Depot folder in which the BLPackage is stored. PACKAGE_GROUP="/parent/group1" # Name of the BLPackage. PACKAGE_NAME="blpgk1" PACKAGE_DBKEY=`blcli BlPackage getDBKeyByGroupAndName $PACKAGE_GROUP $PACKAGE_NAME` RESULT=`blcli BlPackage addExternalCmdToEnd $PACKAGE_DBKEY sampleExternalCmd /c/temp/cmd.txt /c/temp/undocmd.txt "Abort"`
The following example shows how to specify a remote command file. The file is located on a server with the hostname myRemoteServer.
RESULT=`blcli BlPackage addExternalCmdToEnd $PACKAGE_DBKEY sampleExternalCmd //myRemoteServer/c/temp/cmd.txt //myRemoteServer/c/temp/undocmd.txt "Abort"`