The command task
The command task is used to execute shell scripts or standalone shell commands. You can define one or more commands or scripts in a command task. If you define multiple command or scripts in the same command task, the task executes the commands in a sequence.
You can define Unix/Perl commands for Unix servers or DOS commands for Windows servers. If your Informatica server is installed on a Unix operating system, you will be able to execute Unix commands. If the Informatica server is installed on Windows, you can use DOS commands.
Creating a command task
To create a command task in Workflow Manager or Task Developer, perform the following steps:
In Workflow Manager or Task Developer, navigate to Tasks | Create (refer to the screenshot shown in the Creating a Session task section).
From the list of tasks, select the Command task and specify the name of the command task, which is
cmd_TASK_NAME
. For our reference, we are using the command task name ascmd_COPY_FILE
. Click on Create...