SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Showing logging message while job is running

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Showing logging message while job is running
Author Message
Robbert de GROOT



Joined: 13 Dec 2000
Posts: 53

Post Showing logging message while job is running Reply with quote

Sir,

We wrote a script for a job that will run 24 hours a day and seven days a week.
We would like to show in a window messages so we would be able to follow
what the job is doing at any moment (tracing is already done in a file).

Messages will be user defined

What are the possibilities of 24x7 to solve this "problem" ?

Robbert de GROOT

Mon Jan 27, 2003 5:41 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7963

Post Re: Showing logging message while job is running Reply with quote

You can write to Windows Notepad for this purpose.

In the job you can find Notepad Window using WindowFind. If it cannot be found you can then start it using Run statement.
You can then activate the Notepad window and send keystrokes with the desired text using SendKeys statement.

An alternative method is to write to a text file and then when the job finishes you can automatically restart Notepad with the file speicfied on the command line or have Notepad to reload the file. You can use WindowSendMessage or WindowPostMessage statement to send Notepad a WM_SCROLL message to have automatically scroll to the end of the file.

: Sir,

: We wrote a script for a job that will run 24 hours a day and seven days a
: week.
: We would like to show in a window messages so we would be able to follow
: what the job is doing at any moment (tracing is already done in a file).

: Messages will be user defined

: What are the possibilities of 24x7 to solve this "problem" ?

: Robbert de GROOT

Mon Jan 27, 2003 9:46 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7963

Post Re: Showing logging message while job is running Reply with quote

Another option: if in your job you use LogAddMessageEx to write log messages to the 24x7 job log you can then see your job progress by simply selecting the job in 24x7 and switchicng to the Log page. The log page gets updated so it is a kind of a "separate" window where you can see what you want in a real time.

: You can write to Windows Notepad for this purpose.

: In the job you can find Notepad Window using WindowFind. If it cannot be
: found you can then start it using Run statement.
: You can then activate the Notepad window and send keystrokes with the desired
: text using SendKeys statement.

: An alternative method is to write to a text file and then when the job
: finishes you can automatically restart Notepad with the file speicfied on
: the command line or have Notepad to reload the file. You can use
: WindowSendMessage or WindowPostMessage statement to send Notepad a
: WM_SCROLL message to have automatically scroll to the end of the file.

Mon Jan 27, 2003 2:35 pm View user's profile Send private message
Robbert de GROOT



Joined: 13 Dec 2000
Posts: 53

Post Re: Showing logging message while job is running Reply with quote

This worked well until I checked Detached and Asynchronous
options. The job is then submitted to the queue, seems to
run correctly, but nothing is written anymore to the job log

Did I do something wrong ??

: Another option: if in your job you use LogAddMessageEx to write log messages
: to the 24x7 job log you can then see your job progress by simply selecting
: the job in 24x7 and switchicng to the Log page. The log page gets updated
: so it is a kind of a "separate" window where you can see what
: you want in a real time.

Tue Jan 28, 2003 7:31 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7963

Post Re: Showing logging message while job is running Reply with quote

Detached jobs are run by a separate instance of 24x7 so they cannot write to the screen, they write to the log only. To see what's written to the log click the Refresh "()" button, which displayed next to the Log page

: This worked well until I checked Detached and Asynchronous
: options. The job is then submitted to the queue, seems to
: run correctly, but nothing is written anymore to the job log

: Did I do something wrong ??

Tue Jan 28, 2003 8:53 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.