Solved

Logging Scheduled task output

Posted on 2001-08-09
8
170 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
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
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
unable to search  data in SQL 2000 server 10 304
Windows 2000 Server to 2008 upgrade 8 517
Repair old Windows 2000 boot 15 218
Get process CPU use Win2000 server in visual basic 12 142
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…
Adding Computers to AD groups through an SCCM Task Sequence
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

777 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