| Author | 
		Message | 
	
	
		
			Martyn 
			 
			
  
			
			
				Joined: 26 May 2004 Posts: 27
  | 
			 
			  
		 | 
		
			
				  MailSend | 
				     | 
			 
			
				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 | 
		          | 
	
	
		  | 
	
	
		
			Martyn 
			 
			
  
			
			
				Joined: 26 May 2004 Posts: 27
  | 
			 
			  
		 | 
		
			
				  Re: MailSend | 
				     | 
			 
			
				I did restart.
 
   | 
			 
		  | 
	
	
		| Fri Nov 19, 2004 3:58 pm | 
		          | 
	
	
		  | 
	
	
		
			SysOp 
			Site Admin 
			
  
			
			
				Joined: 26 Nov 2006 Posts: 7992
  | 
			 
			  
		 | 
		
			
				  Re: MailSend | 
				     | 
			 
			
				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 | 
		          | 
	
	
		  | 
	
	
		
			Martyn 
			 
			
  
			
			
				Joined: 26 May 2004 Posts: 27
  | 
			 
			  
		 | 
		
			
				  Re: MailSend | 
				     | 
			 
			
				Jal works in a jal script fine.  JalScript.Execute in a vb script job does not.   
   | 
			 
		  | 
	
	
		| Fri Nov 19, 2004 4:39 pm | 
		          | 
	
	
		  | 
	
	
		
			SysOp 
			Site Admin 
			
  
			
			
				Joined: 26 Nov 2006 Posts: 7992
  | 
			 
			  
		 | 
		
			
				  Re: MailSend | 
				     | 
			 
			
				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 | 
		          | 
	
	
		  | 
	
	
		
			Martyn 
			 
			
  
			
			
				Joined: 26 May 2004 Posts: 27
  | 
			 
			  
		 | 
		
			
				  Re: MailSend | 
				     | 
			 
			
				: 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 | 
		          | 
	
	
		  | 
	
	
		
			SysOp 
			Site Admin 
			
  
			
			
				Joined: 26 Nov 2006 Posts: 7992
  | 
			 
			  
		 | 
		
			
				  Re: MailSend | 
				     | 
			 
			
				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 | 
		          | 
	
	
		  | 
	
	
		
			Martyn 
			 
			
  
			
			
				Joined: 26 May 2004 Posts: 27
  | 
			 
			  
		 | 
		
			
				  Re: MailSend | 
				     | 
			 
			
				I received nothing. No response.   
   | 
			 
		  | 
	
	
		| Mon Nov 22, 2004 11:45 am | 
		          | 
	
	
		  | 
	
	
		
			SysOp 
			Site Admin 
			
  
			
			
				Joined: 26 Nov 2006 Posts: 7992
  | 
			 
			  
		 | 
		
			
				  Re: MailSend | 
				     | 
			 
			
				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 | 
		          | 
	
	
		  | 
	
	
		
			Martyn 
			 
			
  
			
			
				Joined: 26 May 2004 Posts: 27
  | 
			 
			  
		 | 
		
			
				  Re: MailSend | 
				     | 
			 
			
				Sorry, didn't notice. Notepad poped up.
 
   | 
			 
		  | 
	
	
		| Mon Nov 22, 2004 3:30 pm | 
		          | 
	
	
		  | 
	
	
		
			SysOp 
			Site Admin 
			
  
			
			
				Joined: 26 Nov 2006 Posts: 7992
  | 
			 
			  
		 | 
		
			
				  Re: MailSend | 
				     | 
			 
			
				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 | 
		          | 
	
	
		  | 
	
	
		
			SysOp 
			Site Admin 
			
  
			
			
				Joined: 26 Nov 2006 Posts: 7992
  | 
			 
			  
		 | 
		
			
				  Re: MailSend | 
				     | 
			 
			
				(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 | 
		          | 
	
	
		  | 
	
	
		
			Martyn 
			 
			
  
			
			
				Joined: 26 May 2004 Posts: 27
  | 
			 
			  
		 | 
		
			
				  Re: MailSend | 
				     | 
			 
			
				Works!!! I created a new job Queue and now it works.
 
   | 
			 
		  | 
	
	
		| Mon Nov 22, 2004 4:51 pm | 
		          | 
	
	
		  | 
	
	
		
			SysOp 
			Site Admin 
			
  
			
			
				Joined: 26 Nov 2006 Posts: 7992
  | 
			 
			  
		 | 
		
			
				  Re: MailSend | 
				     | 
			 
			
				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 | 
		          | 
	
	
		  | 
	
	
		
			Martyn 
			 
			
  
			
			
				Joined: 26 May 2004 Posts: 27
  | 
			 
			  
		 | 
		
			
				  Re: MailSend | 
				     | 
			 
			
				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 | 
		          | 
	
	
		  | 
	
	
		 |