?
Solved

Logging Scheduled task output

Posted on 2001-08-09
8
Medium Priority
?
173 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
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 
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 150 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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.

Question has a verified solution.

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

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…
Learn how to use the free Acronis True Image app to easily transfer data between iPhones and Android phones.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

752 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