SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Cross-Language Calls

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Cross-Language Calls
Author Message
Alan Johns



Joined: 07 Feb 2002
Posts: 2

Post Cross-Language Calls Reply with quote

I have written several vbScript automation jobs and I'd like to be able to write informational type messages to the 24x7 Job log when they've completed.

If you look at the following code, I'm simply trying to run the JAL LogAddMessageEx command from vbScript. However, this code will hang 24x7 everytime and I have to stop and restart it. Is there something I'm doing wrong, or maybe a better way to go about it?

Note: The MsgBox command is simply to show the proper syntax of the LogAddMessageEx command before it is submitted to JAL.

Sub Main( )
Dim JalCommand

JalCommand ="LogAddMessageEx ""INFO"",0,""Job Status"",""Job Info"" " & vbCrLf
MsgBox JalCommand

JALScript.Execute(JalCommand)

End Sub

Thu Feb 07, 2002 3:20 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: Cross-Language Calls Reply with quote

It should work fine when the job starts on schedule.

To make it work in "Run Now" mode set job to run "asynchronous" .

: I have written several vbScript automation jobs and I'd like to be able to
: write informational type messages to the 24x7 Job log when they've
: completed.

: If you look at the following code, I'm simply trying to run the JAL
: LogAddMessageEx command from vbScript. However, this code will hang 24x7
: everytime and I have to stop and restart it. Is there something I'm doing
: wrong, or maybe a better way to go about it?

: Note: The MsgBox command is simply to show the proper syntax of the
: LogAddMessageEx command before it is submitted to JAL.

: Sub Main( )
: Dim JalCommand

: JalCommand ="LogAddMessageEx
: ""INFO"",0,""Job
: Status"",""Job Info"" " & vbCrLf
: MsgBox JalCommand

: JALScript.Execute(JalCommand)

: End Sub

Thu Feb 07, 2002 4:10 pm 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.