returning custom error strings

Comments

3 comments

  • Adam Ruth

    Not currently, we discard any output (other that return code) but this is something that's on our high priority roadmap to add.  Our plans are to provide the output for troubleshooting purposes.  How were you planning on using it?  There may be some way we can use or process the output that would help out your process.

    0
    Comment actions Permalink
  • Roei Engel
    Hey Adam, Thanks for the quick response , At the moment I plan something simple, one script that will copy multiple files to my server, I would like to output not only the amount of files that were copied (in case of an error and also in case that everything worked) but also to specify the exact module that I used when running the script - so I will have records of what was uploaded to my prod environment I also intend to use an output file and send them all at the end of the script to a shared location - but I would also prefer to have one short summery line for my script...
    0
    Comment actions Permalink
  • SelfMan

    Till such feature is available, you can redirect the output of your batch files by using >>\\server\logs\%COMPUTERNAME%_logfile.xtx on every important line.

    For some morei nfo about redirects read http://blog.crankybit.com/redirecting-output-to-a-file-in-windows-batch-scripts/ or google

    0
    Comment actions Permalink

Please sign in to leave a comment.