Solved

Logging Scheduled task output

Posted on 2001-08-09
8
171 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 15

Expert Comment

by:lyonst
ID: 6367502
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
ID: 6367531
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
ID: 6367598
Well I doubt it but perhaps somebody else might have a solution.
0
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 
LVL 1

Expert Comment

by:RideOn
ID: 6367912
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
 
LVL 2

Accepted Solution

by:
ssr earned 50 total points
ID: 6371021
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
ID: 6371314
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
ID: 6371430
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
ID: 6371481
no problem. i just looked on win NT4 machine... and there is a file schedlog.txt
no matter...

~RideOn
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Loss of RDP via youngzsoft.com/cn 4 246
Active Directory Replication 10 1,148
Migration  Windows server 2000 to Server 2012 Essentials 4 1,503
Building AD from Scratch 5 145
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…
Always backup Domain, SYSVOL etc.using processes according to Microsoft Best Practices. This is meant as a disaster recovery process for small environments that did not implement backup processes and did not run a secondary domain controller that ne…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

730 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