Skip to content

Control-M/EM Remove command line from the job’s output

introduction

Hi everybody,
Today we will check how to remove the display of the command line from your jobs outputs
in some case it can be asked to only have the result of the script, for example when attaching it in mail sent to a customer.

use the ctmunixcfg utility

first step is to open a command line and connect with your agent’s

CTMSRVCENTOS% ctmunixcfg

OS Configuration Utility

1) Bourne Shell Flags . . . .(-x|-v|n): [-x]
2) Korn Shell Flags . . . . .(-x|-v|n): [-x]
3) Sysout Name. . .(MEMNAME|JOBNAME). : [MEMNAME]
4) Temporary Scripts Saving (YES|NO) : [NO]
5) Temporary Scripts Directory. . . . : []
6) Replace $0 by File Name . (Y/N). . : [Y]
7) CJK Encoding . . . . . . . . . . . : []
8) Default Printer. . . . . . . . . . : []
9) SMTP Parameters

s) Save
q) Quit

Please enter your choice:

by default the output is showing the command line ( -X parameter )

Select the 2 first choices and udpate them with N parameter
dont forget to save you choice

OS Configuration Utility

1) Bourne Shell Flags . . . .(-x|-v|n): [-x]
2) Korn Shell Flags . . . . .(-x|-v|n): [-x]
3) Sysout Name. . .(MEMNAME|JOBNAME). : [MEMNAME]
4) Temporary Scripts Saving (YES|NO) : [NO]
5) Temporary Scripts Directory. . . . : []
6) Replace $0 by File Name . (Y/N). . : [Y]
7) CJK Encoding . . . . . . . . . . . : []
8) Default Printer. . . . . . . . . . : []
9) SMTP Parameters

s) Save
q) Quit

Please enter your choice:1

Please enter the new value:n

OS Configuration Utility

1) Bourne Shell Flags . . . .(-x|-v|n): [n]
2) Korn Shell Flags . . . . .(-x|-v|n): [-x]
3) Sysout Name. . .(MEMNAME|JOBNAME). : [MEMNAME]
4) Temporary Scripts Saving (YES|NO) : [NO]
5) Temporary Scripts Directory. . . . : []
6) Replace $0 by File Name . (Y/N). . : [Y]
7) CJK Encoding . . . . . . . . . . . : []
8) Default Printer. . . . . . . . . . : []
9) SMTP Parameters

s) Save
q) Quit

Please enter your choice:2

Please enter the new value:n

OS Configuration Utility

1) Bourne Shell Flags . . . .(-x|-v|n): [n]
2) Korn Shell Flags . . . . .(-x|-v|n): [n]
3) Sysout Name. . .(MEMNAME|JOBNAME). : [MEMNAME]
4) Temporary Scripts Saving (YES|NO) : [NO]
5) Temporary Scripts Directory. . . . : []
6) Replace $0 by File Name . (Y/N). . : [Y]
7) CJK Encoding . . . . . . . . . . . : []
8) Default Printer. . . . . . . . . . : []
9) SMTP Parameters

s) Save
q) Quit

Please enter your choice:s

Saving of configuration table OS succeed.

 

Once your configuration updated you can check on your jobs if outputs are still displaying the command line


Note: with ctmunixcfg utility you can also use -v option to get your outputs more verbose

conclusion

now you know how to display/remove the command line in your job’s output,feel free to check dbi’s blog to get more tips!

Let’s work together

Ready to operate at
the next level?

Tell us about your challenge. We’ll bring the depth, the expertise, and the Swiss precision.

Middleware Team

Middleware Team

Posts published under the Middleware Team account are collective contributions by the dbi services middleware and enterprise content management consultants. The practice covers ECM platforms such as OpenText Documentum, Alfresco, and M-Files, as well as application servers and integration technologies including WebLogic, JBoss, Tomcat, and the Elastic Stack, from architecture and deployment to operations under service level agreements.View Author posts

322 posts since February 2013

Most read in Control-M

The Control-M posts our readers open most: the all-time favourites, and what is trending right now.

Leave a Comment

Your email address will not be published. Required fields are marked *