control sysout

Everything about Control-M Server installation or setup.
Post Reply
User avatar
moha1984
Nouveau
Nouveau
Posts: 53
Joined: 08 Aug 2010 12:00

control sysout

Post by moha1984 » 01 Nov 2010 3:21

Hi,

Please Compare between outputs:

- this is output throgh unix server

patrol@jury:/opt/patrol/scripts>cat related_MSISDNs.log

COUNT(*)
----------
86559

patrol@jury:/opt/patrol/scripts>


- and this is output throgh control-m/em sysout

+ /bin/sh -x /opt/patrol/scripts/registration_process.sh
+ cd /oracle/epprod/10.2.0/bin
+ sqlplus -s kmsusr2/kms11,kms
+ cat
+ 0< /tmp/sh819244.2

COUNT(*)
----------
482


I would like to know how to control systout in control-m as I want or the same output unix server?

User avatar
matom
Nouveau
Nouveau
Posts: 37
Joined: 29 Nov 2006 12:00
Location: Ile de France

Post by matom » 04 Nov 2010 10:25

Hi moha1984,

Default unix switch is "-x" (Bourne and Korn shell)

two ways to resolve your "issue":

1) update your agent config. ctmunixcfg utility.set "n" .
IMPORTANT : "On statement" can't be used with "n" shell flag.

2) add "set +x" in the script.

Regards,
Michel

User avatar
moha1984
Nouveau
Nouveau
Posts: 53
Joined: 08 Aug 2010 12:00

Post by moha1984 » 04 Nov 2010 1:15

how can add "set +x" in the script?

give me ex please :cry:

User avatar
cdhiren
Nouveau
Nouveau
Posts: 3
Joined: 17 Sep 2009 12:00

Post by cdhiren » 05 Nov 2010 4:06

e.g:
vi test.sh
----------------
#!/bin/ksh
set -x
#remainder of the script
#
-----------------

cheers
dhiren

Post Reply