Solved

Logging Scheduled task output

Posted on 2001-08-09
8
167 Views
Last Modified: 2010-04-13
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
Comment
Question by:boomerang061797
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 15

Expert Comment

by:lyonst
Comment Utility
Hi,

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

T.
0
 

Author Comment

by:boomerang061797
Comment Utility
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
 
LVL 15

Expert Comment

by:lyonst
Comment Utility
Well I doubt it but perhaps somebody else might have a solution.
0
 
LVL 1

Expert Comment

by:RideOn
Comment Utility
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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 2

Accepted Solution

by:
ssr earned 50 total points
Comment Utility
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
 
LVL 1

Expert Comment

by:RideOn
Comment Utility
yes ssr but
<< I was wondering if it was possible for the scheduler to "capture" the output
that's comment boomerang
0
 

Author Comment

by:boomerang061797
Comment Utility
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
 
LVL 1

Expert Comment

by:RideOn
Comment Utility
no problem. i just looked on win NT4 machine... and there is a file schedlog.txt
no matter...

~RideOn
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

Suggested Solutions

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Marketing can be an uncomfortable undertaking, especially if your material is technology based. Luckily, we’ve compiled some simple and (relatively) painless tips to put an end to your trepidation and start your path to success.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now