Support Questions

Find answers, ask questions, and share your expertise

How to mask the code being printed in the console log

avatar
Explorer

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?

1 ACCEPTED SOLUTION

avatar
Expert Contributor

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.

View solution in original post

3 REPLIES 3

avatar
Expert Contributor

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?

avatar
Explorer

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?

avatar
Expert Contributor

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.