SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Execution from service not possible - part II

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Execution from service not possible - part II
Author Message
Dominik



Joined: 30 Jul 2007
Posts: 36

Post Execution from service not possible - part II Reply with quote
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 View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6508

Post Reply with quote
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 View user's profile Send private message
Dominik



Joined: 30 Jul 2007
Posts: 36

Post Reply with quote
seems do be a problem of the program i start
Tue Dec 10, 2013 4:27 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.