Tuesday, September 02, 2008

Shell scripting for componentwise

1.Shell programming syntax on compress

To call the Compress component in the Shell Development Environment (sde), use the mp compress command.

Following is the command syntax:

mp compress/labelÞ
-layoutlayout_name

Following is a list of the arguments to the command, with a brief description of each:

label Name you want to assign to this particular instance of this component.
-layoutlayout_name Name of a layout object.

2.Shell programming syntax on uncompress

To call the Uncompress component in the SDE, use the mp uncompress
command.

Following is the command syntax:

mp uncompresslabelÞ
-Layout layout name

Following is a list of the arguments to the command, with a brief description of each:

label Name you want to assign to this particular instance of this component.
-layoutlayout_name Name of a layout object.

3.Shell programming syntax on GATHERLOG AS A MISLANEIOUS COMPONENT

To call the Gather Logs component in the SDE, use the mp logger command.

Following is the command syntax:

mp logger labellog_filename start text end_textÞ
-Layoutlayout_name

Following is a list of the arguments to the command, with a brief description of each:

Label Name you want to assign to this particular instance of this component.
log filename See log file parameter.
start text See start text parameter.
end text See end text parameter.
-Layoutlayout_name Name of a layout object.

4.Shell programming syntax on redefined format as a mislaneous component

To call the Redefine Format component in the SDE, use the mp copy command.

Following is the command syntax:

mp copy label
-layoutlayout_name

Following is a list of the arguments to the command, with a brief description of each:

Label Name you want to assign to this particular instance of this component.
-Layoutlayout_name Name of a layout object.

5.Shell programming syntax on replicate component as a mislaneous component

To call the Replicate component in the SDE, use the mp broadcast command.

Following is the command syntax:

mp broadcast labelÞ
-Layoutlayout_name

Following is a list of the arguments to the command, with a brief description of each:

Label Name you want to assign to this particular instance of this component.
-Layoutlayout_name Name of a layout object.
6.Shell programming syntax on run program as a mislaneous component

To call the Run Program component in the SDE, use the mp filter command.

Following is the command syntax:

mp filter labelcommand_lineÞ -Layoutlayout_name

Following is a list of the arguments to the command, with a brief description of each:

label Name you want to assign to this particular instance of this component.
command_line See commandline parameter. Ex: /bin/grep -i Smith
-layoutlayout_name Name of a layout object.
7.Shell programming syntax on trash component as a mislaneous component

To call the Trash component in the SDE, use the mp broadcast command, and do not attach a flow to the out port.

Following is the command syntax:

mp broadcast labelÞ -Layoutlayout_name

Following is a list of the arguments to the command, with a brief description of each:

label Name you want to assign to this particular instance of this component.
-Layoutlayout_name Name of a layout object.

8.Shell programming syntax on broadcast component as a partition component

To call the Broadcast component in the SDE, use the mp broadcast command.

Following is the command syntax:

Mp broadcast label -Layout layout name

Following is a list of the arguments to the command, with a brief description of each:

Label The name you want to assign to this particular instance of this component.
-Layoutlayout_name Name of a layout object.

9.Shell programming syntax on partition by expression as a partition component

To call the Partition by Expression component in the SDE, use the mp function-partition command.

Following is the command syntax:

mp function-partition labelDML_expressionÞ -Layoutlayout_name

Following is a list of the arguments to the command, with a brief description of each:

Label Name you want to assign to this particular instance of this component.
DML_expression See function parameter.
-Layoutlayout_name Name of a layout object.
10.Shell programming syntax on partition by key component as a partition component

To call the Partition by Key component in the SDE, use the mp hash-partition command.

Following is the command syntax:

mp hash-partition labelkey_specifierÞ -Layoutlayout_name

Following is a list of the arguments to the command, with a brief description of each:

Label Name you want to assign to this particular instance of this component.
key_specifier See key parameter.
-Layoutlayout_name Name of a layout object.
11.Shell programming syntax on partition by percentage as a partition component

To call the Partition by Percentage component in the SDE, use the mp percentage-partition command.

Following is the command syntax:

Mp percentage-partition label [Percentage1percentage2...] Þ -Layoutlayout_name

Following is a list of the arguments to the command, with a brief description of each:

Label Name you want to assign to this particular instance of this component.
Percentage1ÞPercentage2... List of percentages expressed as integers from 1 to 100, separated by spaces.
-Layoutlayout_name Name of a layout object.
12.Shell programming syntax on partition by range as a partition component

To call the Partition by Range component in the SDE, use the mp range-partition command.

Following is the command syntax:

mp range-partition label key_specifierÞ -Layoutlayout_name

Following is a list of the arguments to the command, with a brief description of each:

Label Name you want to assign to this particular instance of this component.
Key_specifier See key parameter.
-Layoutlayout_name Name of a layout object.
13. Shell programming syntax on partition by round Rabin as a partition component

To call the Partition by Round-robin component in the SDE, use the mp round robin-partition command.

Following is the command syntax:

Mp round robin-partition label number_recordsÞ -Layoutlayout_name

Following is a list of the arguments to the command, with a brief description of each:

Label Name you want to assign to this particular instance of this component.
Number records: See block size parameter.
-Layoutlayout_name Name of a layout object.
14. Shell programming syntax on partition with load balance as a partition component

To call the Partition with Load Balance component in the SDE, use the mp load-level-partition command.

Following is the command syntax:

mp load-level-partition label -Layoutlayout_name

Following is a list of the arguments to the command, with a brief description of each:

Label Name you want to assign to this particular instance of this component.
-Layoutlayout_name Name of a layout object.

No comments: