• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 180
  • Last Modified:

Logging Scheduled task output

Hi

I've written a dos based program that writes its results to the dos screen. I have now used the Win2000 server scheduler to schedule the program on a daily basis and it works.

However, is there any way to read the program output (for errors etc.), possibly in a log file or something?
0
boomerang061797
Asked:
boomerang061797
  • 3
  • 2
  • 2
  • +1
1 Solution
 
lyonstCommented:
Hi,

Can you not write to a log file in your program when it is executing instead of to the DOS Screen ?

T.
0
 
boomerang061797Author Commented:
Yes, of course. But I was wondering if it was possible for the scheduler to "capture" the output to a system log file or something.
0
 
lyonstCommented:
Well I doubt it but perhaps somebody else might have a solution.
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
RideOnCommented:
Yes, there is a scheduler LogFile

but i don't know what it exactly logs.

it's in your root directory, the name is SchedLog.txt
there is no other log file!
0
 
ssrCommented:
Depends on exactly what you are doing, but you can use this kind of command line:

prog >> c:\prog_output.txt

Where prog is the name of the program you run.  This will redirect any of the output appending to the given file.

SSR
0
 
RideOnCommented:
yes ssr but
<< I was wondering if it was possible for the scheduler to "capture" the output
that's comment boomerang
0
 
boomerang061797Author Commented:
I find no schedlog.txt files neither on my win2000 server or client, however I find a SchedLgU.Txt file which seems to contain a minimal amount of info regarding the scheduler.

After some thought I think the best option is to pipe the output to a file as 'ssr' suggested. I didn't think of that at first. However, I can't award points to everyone and since 'ssr' actually gave an answer that lead me to a solution I think it is most fair to award him/her the points. Sorry 'RideOn'.

Thankyou everyone for your input.
0
 
RideOnCommented:
no problem. i just looked on win NT4 machine... and there is a file schedlog.txt
no matter...

~RideOn
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 3
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now