Is it possible to execute a script which is not being written to the log?

chefkoch's Avatar

chefkoch

22 Mar, 2014 11:45 AM

That might be helpful setting up command which require credentials.

  1. Support Staff 1 Posted by Feodor Fitsner on 22 Mar, 2014 03:34 PM

    Feodor Fitsner's Avatar

    PowerShell:

    mycommand 2>&1 | Out-Null
    

    Batch:

    mycommand >nul
    
  2. 2 Posted by chefkoch on 22 Mar, 2014 06:30 PM

    chefkoch's Avatar

    Ok, thanks for this information, ut I actually used the > for writing
    credentials to a simple ini file.

    To be more specific: Transifex does not allow to download translations
    anonymously. https://github.com/transifex/transifex/issues/1
    As a workaround I would like to place the following file
    %userprofile%\.transifexrc containing some credentials for Transifex, but
    therefore writing this file should not be logged.

    Build 11 contains a build where it was working:
    https://ci.appveyor.com/project/chefkoch/mediaportal-2/build/2.0.0.11
    It passed downloading the translations. (but failed because of a test, does
    not matter)

    I changed the password for the transifex account. before the test and after
    it again, of course ;)

    Thanks for your support.
    Tommy

    *--------------------------Team MediaPortal*
    Tommy Scheinpflug (chefkoch)
    Mail: [email blocked]

  3. Support Staff 3 Posted by Feodor Fitsner on 22 Mar, 2014 07:19 PM

    Feodor Fitsner's Avatar

    You can put credentials to environment variables on project settings or to secure variables if you use appveyor.yml, so in build log you'll see only variable names, not their actual values.

    - Feodor

  4. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:38 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac