It is currently 16 Aug 2018 12:18


Post new topic  Reply to topic  [ 9 posts ] 
Author Message
PostPosted: 30 Nov 2010 5:39 
Offline
Nouveau
Nouveau
User avatar

Joined: 08 Sep 2010 12:00
Posts: 73
Hello,

Our sysout file has excessive prompt info which can make reading the output hard. Here is example:

[APWMAD0A0773] F:\Program Files\BMC Software\CONTROL-M Agent\Default>REM * New Command Line Arguments

We don't need to see the path everytime for every statement.

How can we modify or remove this?

Are there other options for modifing the sysout format?

Thanks All!!!


Top
   
 Post subject:
PostPosted: 01 Dec 2010 11:20 
Offline
Nouveau
Nouveau
User avatar

Joined: 08 Jun 2007 12:00
Posts: 1148
Location: Ile de France
Yes
using the ctmunixcfg on the agent:
OS Configuration Utility

1) Bourne Shell Flags . . . .(-x|-v|n): [n]
2) Korn Shell Flags . . . . .(-x|-v|n): [n]

Regards,
Philmalmaison


Top
   
 Post subject:
PostPosted: 16 Oct 2012 5:39 
Offline
Nouveau
Nouveau
User avatar

Joined: 08 Sep 2010 12:00
Posts: 73
What about the Windows enviorment?


Top
   
 Post subject:
PostPosted: 16 Oct 2012 5:58 
Offline
Nouveau
Nouveau
User avatar

Joined: 08 Sep 2010 12:00
Posts: 73
Opps I got it. Sorry for another post.


Top
   
 Post subject:
PostPosted: 26 Oct 2012 5:13 
Offline
Nouveau
Nouveau
User avatar

Joined: 08 Jun 2007 12:00
Posts: 807
Location: Varese - Italy
Put @echo off at the beginning of the script.


Top
   
 Post subject: Prompt
PostPosted: 26 Oct 2012 6:07 
Offline
Nouveau
Nouveau
User avatar

Joined: 08 Sep 2010 12:00
Posts: 73
Actually I wanted to get rid of that long prompt but still retain the command and other echo outputs. Echo off stops everything from coming. The ctmwincfg setting would stop the commands.


Top
   
 Post subject:
PostPosted: 26 Oct 2012 6:30 
Offline
Nouveau
Nouveau
User avatar

Joined: 08 Jun 2007 12:00
Posts: 807
Location: Varese - Italy
Is NOT as you say:
"@echo off" stops olny the echo of commads, exactly as ctmwincfg does; so if have in the script

Code:
echo "Have a good day"


The output is:
----------------
echo "Have a good day"
"Have a good day
"
----------------

If you have in the script:
Code:
@echo off
echo "Have a good day"


the output is:
---------------
"Have a good day"
---------------

Consider also that there is the "echo on" command so playing with "on" and "off" you can see only some lines.

The echo off is more flexible and I advice this method because in this manner you can, only for ONE script disable the echo; very usefull for example when you debug a script...
And in control-M with the edit jcl/script action you can easily add and delete the echo.


Last edited by mauriziog on 26 Oct 2012 6:36, edited 1 time in total.

Top
   
 Post subject:
PostPosted: 26 Oct 2012 6:34 
Offline
Nouveau
Nouveau
User avatar

Joined: 08 Jun 2007 12:00
Posts: 807
Location: Varese - Italy
to complete the "command echo" topic in batch:
even when the echo in on, the commad is not show if there is the "@" as first char...

so if you write
Code:
@echo Ciao


in the output is:
-----------
Ciao
-----------

and there isnt the "echo off" ....
:D


Top
   
PostPosted: 06 Feb 2013 8:45 
Offline
Nouveau
Nouveau
User avatar

Joined: 08 Sep 2010 12:00
Posts: 73
I tried to do this in Configuration Manager as setting

"Echo Job Commands" to NO"

But sysout still has excessive prompt and line spaces. I thought it worked once but now is not.

Any ideas?

Thank you,

Goo


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 9 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited
The site created by Franck YOT. Images, logo, content and trademarks about Control-M products are property of BMC Software.
All the comments are property of their posters. Images, logo, content and design are © copyright by Scheduler-Usage.com. All Rights Reserved