Examples of Using Special Commands

This section provides examples of special commands.

To copy a file from one server to another server, use the following command:

copy_server_server

Special Command Example:

ksc_connect_dest_server
if [ ! -d [P.P_SUB_PATH] ]; then mkdir -p [P.P_SUB_PATH]; fi
ksc_exit
ksc_copy_server_server SUB_PATH="[P.P_SUB_PATH]"
FILENAME="[P.P_FILENAME]" FILE_TYPE="[P.P_FILE_TYPE]"

To import using a given password, use the following command:

ksc_mig_import

Special Command Example:

ksc_mig_import PASSWD="[P.DEST_PASSWD]"

To change the status of a project, use the following command:

ksc_run_java

Special Command Example:

ksc_run_java com.kintana.core.server.execution.SetProjectStatus
-project [REQ.P.KNTA_PROJECT_PLAN] -status [P.P_STATUS]
-user [SYS.USER_ID]

To connect to a server and change permissions of a file, use the following command:

ksc_connect_dest_server

Special Command Example:

ksc_connect_dest_server DEST_ENV="[DEST_ENV.ENVIRONMENT_NAME]"
# 444 is read-only. if the locked flag
# is no this is the permission set
# the user requested
chmod 0444 "[P.P_FILENAME]"
ksc_exit

To copy specified requests with the original creator ID and the request fields, use the following command:

ksc_copy_request

Special Command Example:

ksc_copy_request FROM_REQUEST_ID="[REQ.REQUEST_ID]"
USER_ID="[USER_ID]" VALIDATION_NAME="[VALIDATION_NAME]"

To clear forecast and assignments of a staffing profile:

ksc_clear_staffingprofile_forecast_assignment

Special Command Example:

ksc_clear_staffingprofile_forecast_assignment STAFFING_PROFILE_ID="<staffing_profile_id>" CLEAR_FROM_DATE="<clear_from_date>"