Skip to main content
MadhuNP
Silver ⭐️⭐️
February 2, 2023
Solved

How to mask the code being printed in the console log

Hi,

I have my project deployed in CDSW and am eager to know if there is an option to mask the code being printed/displayed on the output console log? or at least in the email that gets distributed on the job status after the run?

Mike
MikeAnswer
Gold ⭐️
February 6, 2023

I think you will have to write the output you want to share into an attachment and simply share the attachment only. When you set up a job you can tell it not to send the console output.

3 replies

Mike
Gold ⭐️
Gold ⭐️
February 6, 2023

Hi.

When you go to share a session, there is a box to "Hide code and text" - does this work for you?

Mike_0-1675704335430.png

 

 

I don't really see a way to do this inside of a scheduled job. I think your best bet is to write whatever important data that you want to share to a file, and then when you set up your job, uncheck the button to share the console and include the attachment. Can you try that?

Translate
MadhuNP
MadhuNPAuthor
Silver ⭐️⭐️
February 6, 2023

Thanks for the suggestion Mike. My issue is specific to the job report being sent via email to the recipients at the end of a job run. That email contains the project code followed by the results and want to badly mask the project code for confidentiality purposes especially when there are external recipients. Do you have any suggestions for this please?

Translate
Mike
Gold ⭐️
MikeAnswer
Gold ⭐️
February 6, 2023

I think you will have to write the output you want to share into an attachment and simply share the attachment only. When you set up a job you can tell it not to send the console output.

Translate