1

I would like to capture the output of a script with options which is triggered by windows scheduler. I found an stackoverflow post At:

How do I capture the output of a script if it is being ran by the task scheduler? the suggestion is to use the following. cmd /c yourscript.cmd > logall.txt

I am not sure how to use this as in scheduler I have the following set up:

Program/script:  C:\Ruby193\bin\ruby.exe
add argument:  .\download_xml.rb --instance=SERVER-SQL
Start in:  C:\Download_Reports\

Thanks

Community
  • 1
  • 1
maggs
  • 125
  • 1
  • 13
  • 1
    I would recommend that you modify your script to use [Logger](http://www.ruby-doc.org/stdlib-2.1.5/libdoc/logger/rdoc/Logger.html), if you can. – Phrogz Nov 24 '14 at 04:59
  • yes this works using logger thanks – maggs Nov 25 '14 at 05:37

0 Answers0