SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
MailSend

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
MailSend
Author Message
Martyn



Joined: 26 May 2004
Posts: 27

Post MailSend Reply with quote

Upgraded from 3.4.22 to 3.4.23 and now JalScript.Execute
no longer works within VBScript with netscape mail.
I have to Kill the process in Queue monitor for the mail
to be sent or the job hangs at the JalScript. All other
Jal scripts still work.

Fri Nov 19, 2004 3:57 pm View user's profile Send private message
Martyn



Joined: 26 May 2004
Posts: 27

Post Re: MailSend Reply with quote

I did restart.

Fri Nov 19, 2004 3:58 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: MailSend Reply with quote

Does JalScript.Execute("MessageBox 1") work?
Are you sure the job hangs when doing JalScript.Execute?
Turn on th tracing option and check the last message in the trace window before job hanging. What does it say?

: Upgraded from 3.4.22 to 3.4.23 and now JalScript.Execute
: no longer works within VBScript with netscape mail.
: I have to Kill the process in Queue monitor for the mail
: to be sent or the job hangs at the JalScript. All other
: Jal scripts still work.

Fri Nov 19, 2004 4:04 pm View user's profile Send private message
Martyn



Joined: 26 May 2004
Posts: 27

Post Re: MailSend Reply with quote

Jal works in a jal script fine.
JalScript.Execute in a vb script job does not.

Fri Nov 19, 2004 4:39 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: MailSend Reply with quote

1. What do you get in the trace?
See http://www.softtreetech.com/cgi_bin/config.cgi?read=5797

2. Does the following VBS script work?

Sub Main()
Dim vb24x7
Set vb24x7 = CreateObject("vb24x7.Process")
ProcessId = vb24x7.Run("Notepad.exe")
If ProcessId < 0 Then
MsgBox("Unable to start process. " & vb24x7.LastError )
End If
Set vb24x7 = Nothing
End Sub

: Jal works in a jal script fine.
: JalScript.Execute in a vb script job does not.

Fri Nov 19, 2004 4:51 pm View user's profile Send private message
Martyn



Joined: 26 May 2004
Posts: 27

Post Re: MailSend Reply with quote

: 1. What do you get in the trace?
: See http://www.softtreetech.com/cgi_bin/config.cgi?read=5797

Not Working:
COMMAND LINE >> Start job #10
VBS Starting script execution
JALSS JALScript Service loaded
JALSS Request Event 540, Stop Event 544, Read Pipe 548, Write Pipe 552
JALSS JALScript Service Listener started
JALSS JALScript Service entering process synchronization state...
JALSS Completed.
JALSS JALScript Service waiting for events
VBS Invoking sub Main...
JALSS Received request for JALScript Service
JALSS JALScript Service executing request
JAL
**** 2004-11-19 16:20:51 ****

JAL 1: MAILSENDWITHATTACHMENT
JAL 1: Executing MAILSENDWITHATTACHMENT("", "", "my.email@coy.com", "Report",
"Report Date:", "e:\Schd24x7\Mail\ToSend\Test.txt")
(hangs here)

BUT THIS DOES WORK IF JAL SCRIPT JOB:
JAL
**** 2004-11-19 16:21:42 ****

JAL 1: MAILSENDWITHATTACHMENT
JAL 1: Executing MAILSENDWITHATTACHMENT("", "", "my.email@coy.com", "Report"
"Report Date:", "e:\Schd24x7\Mail\ToSend\Test.txt")
JAL

: 2. Does the following VBS script work?

: Sub Main()
: Dim vb24x7
: Set vb24x7 = CreateObject("vb24x7.Process")
: ProcessId = vb24x7.Run("Notepad.exe")
: If ProcessId < 0 Then
: MsgBox("Unable to start process. " & vb24x7.LastError )
: End If
: Set vb24x7 = Nothing
: End Sub

DOESN'T DO ANYTHING. I BELEIVE IT SHOULDN'T? MY VBS IN MY JOBS DO WORK.

Fri Nov 19, 2004 5:25 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: MailSend Reply with quote

Can you confirm that the second VBScript does not work?
Do you get an error? If yesm, what does it say?

: Not Working: COMMAND LINE >> Start job #10
: VBS Starting script execution
: JALSS JALScript Service loaded
: JALSS Request Event 540, Stop Event 544, Read Pipe 548, Write Pipe 552
: JALSS JALScript Service Listener started
: JALSS JALScript Service entering process synchronization state...
: JALSS Completed.
: JALSS JALScript Service waiting for events
: VBS Invoking sub Main...
: JALSS Received request for JALScript Service
: JALSS JALScript Service executing request
: JAL
: **** 2004-11-19 16:20:51 ****

: JAL 1: MAILSENDWITHATTACHMENT
: JAL 1: Executing MAILSENDWITHATTACHMENT("", "",
: "my.email@coy.com", "Report",
: "Report Date:", "e:\Schd24x7\Mail\ToSend\Test.txt")
: (hangs here)

: BUT THIS DOES WORK IF JAL SCRIPT JOB: JAL
: **** 2004-11-19 16:21:42 ****

: JAL 1: MAILSENDWITHATTACHMENT
: JAL 1: Executing MAILSENDWITHATTACHMENT("", "",
: "my.email@coy.com", "Report"
: "Report Date:", "e:\Schd24x7\Mail\ToSend\Test.txt")
: JAL

: DOESN'T DO ANYTHING. I BELEIVE IT SHOULDN'T? MY VBS IN MY JOBS DO WORK.

Fri Nov 19, 2004 5:55 pm View user's profile Send private message
Martyn



Joined: 26 May 2004
Posts: 27

Post Re: MailSend Reply with quote

I received nothing. No response.

Mon Nov 22, 2004 11:45 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: MailSend Reply with quote

Sorry, I am not sure what you mean. Here is the original question again. Does the following script work when executed as VB script job in 24x7?

'''''''''''''''''''''''''''
Sub Main()
Dim vb24x7
Set vb24x7 = CreateObject("vb24x7.Process")
ProcessId = vb24x7.Run("Notepad.exe")
If ProcessId < 0 Then
MsgBox("Unable to start process. " & vb24x7.LastError )
End If
Set vb24x7 = Nothing
End Sub

'''''''''''''''''''''''''''
The reason for this test is to verify that VB 6 Run-time DLLs are ok and 24x7 VB extensions are installed correctly.

: I received nothing. No response.

Mon Nov 22, 2004 12:23 pm View user's profile Send private message
Martyn



Joined: 26 May 2004
Posts: 27

Post Re: MailSend Reply with quote

Sorry, didn't notice. Notepad poped up.

Mon Nov 22, 2004 3:30 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: MailSend Reply with quote

Ok. It looks like these parts are installed correctly and the problem so far is limited to JALExecute method.

Because this conversation may require a few more messages which will make them difficult to read, I am moving to the message thread above.
Please see my next message in the thread you started on 11/19/2004 14:57

: Sorry, didn't notice. Notepad poped up.

Mon Nov 22, 2004 3:40 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: MailSend Reply with quote

(Continued from previous thread)

Does JalScript.Execute("MessageBox 1") work in a VBScript job run in 24x7?

: Does JalScript.Execute("MessageBox 1") work?
: Are you sure the job hangs when doing JalScript.Execute?
: Turn on th tracing option and check the last message in the trace window
: before job hanging. What does it say?

Mon Nov 22, 2004 3:42 pm View user's profile Send private message
Martyn



Joined: 26 May 2004
Posts: 27

Post Re: MailSend Reply with quote

Works!!! I created a new job Queue and now it works.

Mon Nov 22, 2004 4:51 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: MailSend Reply with quote

Ok, good. So I guess the original hanging problem was caused probably by the fact the default JAL engine was waiting for some job to finish in the default queue to complete before it could execute the MailSend command.

: Works!!! I created a new job Queue and now it works.

Mon Nov 22, 2004 5:18 pm View user's profile Send private message
Martyn



Joined: 26 May 2004
Posts: 27

Post Re: MailSend Reply with quote

Actually, it was the default queue and there was no other
job in it. Either way, it works now. thanks for your help.

Wed Nov 24, 2004 4:38 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.