  | 
			
				SoftTree Technologies 
				Technical Support Forums
			 | 
		 
		  | 
	 
	 
	
	
	
		
	
	
	
		| Author | 
		Message | 
	 
	
		
			Dominik 
			 
			
  
			
			
				Joined: 30 Jul 2007 Posts: 36
  | 
			 
			  
		 | 
		
			
				  Execution from service not possible - part II | 
				     | 
			 
			
				Hi SoftTree Team,
 
 
 
We still have problems with 24x7 Scheduler as a service. http://www.softtreetech.com/support/phpBB2/viewtopic.php?t=23984
 
 
In the last topic you told me to use UNC Pathnames. I tried the follwoing things:
 
 
// its working (on GUI)
 
Run( "C:\\Programme\\Cognos\\c8_datamanager\\bin\\rundsjob.exe ORACLE dmcatp1/~81021ED2BD833CEDA8B5BD6D140DB64428@OPISDWH SHAN_HANSECONTROL", "", ret_num )
 
 
// its working (on GUI, i've written the commandline into a batch file) 
 
Run( "\\\BDDS1\\C$\\Programme\\Cognos\\c8_datamanager\\bin\\Test.bat", "", ret_num )
 
 
// its  NOT working (on GUI and no Error Messages)
 
Run( "\\\BDDS1\\C$\\Programme\\Cognos\\c8_datamanager\\bin\\rundsjob.exe ORACLE dmcatp1/~81021ED2BD833CEDA8B5BD6D140DB64428@OPISDWH SHAN_HANSECONTROL"), "", ret_num )
 
 
Why?
 
 
Thats the "out" File:
 
 
****  09.12.2013 17:00:57 ****
 
 
JAL   Initializing interfaces...
 
JAL   Decrypting script...
 
JAL   Running script...
 
 
****  09.12.2013 17:00:57 ****
 
 
1: DIM
 
1: Executing DIM("RET_NUM", "NUMBER")
 
2: DIM
 
2: Executing DIM("EXE_PROG", "STRING")
 
9: SET
 
9: Executing SET("exe_prog", "\\BDDS1\C$\Programme\Cognos\c8_datamanager\bin\rundsjob.exe ORACLE dmcatp1/~81021ED2BD833CEDA8B5BD6D140DB64428@OPISDWH SHAN_HANSECONTROL")
 
13: RUN
 
13: Executing RUN("\\BDDS1\C$\Programme\Cognos\c8_datamanager\bin\rundsjob.exe ORACLE dmcatp1/~81021ED2BD833CEDA8B5BD6D140DB64428@OPISDWH SHAN_HANSECONTROL", "", "0")
 
   Return "3560"
 
JAL   Script finished
 
 
Next Step i tried to start the different (scheduled 1 minute) scripts via service
 
The both examples which where working well in GUI dont work when i start 24x7 as a service!
 
 
On the other hand this VAL Script:  
 
CompareLocalDir( "\\\BDDS1\\C$\\Programme\\Cognos\\c8_datamanager\\bin", "\\\BDNETAPP1\\Bereich$\\oao1\\sft\\DB", true, ret_source, ret_target)
 
MailSend email_from, email_pwd, email_to_admin, ret_source , ret_target
 
.. is working in GUI AND as a service.
 
 
Whats the problem? As you can see, i use the same ONC. Why is the service execution of the last JAL Script posssible, while the other scripts dont work?
 
I'm very confused.
 
 
Best regards,
 
Dominik
  | 
			 
		  | 
	 
	
		| Mon Dec 09, 2013 11:46 am | 
		          | 
	 
	
		  | 
	 
	
		
			SysOp 
			Site Admin 
			
  
			
			
				Joined: 26 Nov 2006 Posts: 7992
  | 
			 
			  
		 | 
		
			
				   | 
				     | 
			 
			
				In cases like 
 
 
Run( "\\\BDDS1\\C$\\Programme\\Cognos\\c8_datamanager\\bin\\rundsjob.exe ORACLE dmcatp1/~81021ED2BD833CEDA8B5BD6D140DB64428@OPISDWH SHAN_HANSECONTROL"), "", ret_num )
 
 
you have a missing backslash in the beginning. The correct syntax should be
 
 
Run( "\\\\BDDS1\\C$\\Programme\\Cognos\\c8_datamanager\\bin\\rundsjob.exe ORACLE dmcatp1/~81021ED2BD833CEDA8B5BD6D140DB64428@OPISDWH SHAN_HANSECONTROL"), "", ret_num ) 
 
 
Similar for 
 
 
CompareLocalDir( "\\\BDDS1\\C$\\Programme ...
 
 
that should be changed to 
 
 
CompareLocalDir( "\\\\BDDS1\\C$\\Programme ...
 
 
Hope this helps.
  | 
			 
		  | 
	 
	
		| Mon Dec 09, 2013 11:45 pm | 
		          | 
	 
	
		  | 
	 
	
		
			Dominik 
			 
			
  
			
			
				Joined: 30 Jul 2007 Posts: 36
  | 
			 
			  
		 | 
		
			
				   | 
				     | 
			 
			
				seems do be a problem of the program i start
  | 
			 
		  | 
	 
	
		| Tue Dec 10, 2013 4:27 am | 
		          | 
	 
	
		  | 
	 
	
		 | 
	 
 
  
	 
	    
	   | 
	
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
  | 
   
 
		 | 
	 
	  |