Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


johnsayer
2013-11-26T10:36:48Z
Hi,

I have a remote execute task that is returning an error code on completion: 77777(VisualCron specific error). The task also returns a couple of errors in Output(StdErr) - “Exception in Task: Not found” and “Exception in Task: Non zero exit code”. The VBScript appears to execute remotely when the task is triggered, but it returns the above mentioned errors on completion. I have tested the VBScript locally and it executes without errors, so I know the script is not at fault.

Reading other posts, I think this could be a permission related problem, but I have tried all possible combinations of credential config and nothing works.


VC version 6.2.2
johnsayer attached the following image(s):
Sponsor
Forum information
Support
2013-11-27T10:37:20Z
Try using local path for engine and script without the UNC and without and hidden drives ($C), just something like this;

c:/engine.exe
c:/script.vb
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
johnsayer
2013-11-28T11:29:26Z
johnsayer
2013-11-28T11:44:12Z
FYI - this is what the test script is doing (below).


'Test Script

strDir = "C:\VBS_Test"

Set objFS = CreateObject("Scripting.FileSystemObject")
Set objFolder = objFS.CreateFolder(strDir)
WScript.StdErr.Write "I created the folder " & strDir & " "
Support
2013-11-28T14:03:23Z
Could you try to uncheck "Wait for completion"?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
johnsayer
2013-11-29T08:52:57Z
Hi,

If I uncheck the ‘wait for completion’ box, the task does complete successfully. It doesn’t, however, return the StdOut or StdErr that I require. Also, the purpose of using VisualCron is to schedule several jobs that are dependent on their predecessors. As far as I can tell, the task is now completing successfully, regardless of the VBScript outcome.
Support
2013-11-29T09:19:21Z
The Remote Execute Task relies on Windows and cannot return output. If you want to return output you should use the normal Execute Task and alter Execution context so you execute on another computer. It requires that you install VisualCron on remote computer but gives you all features of Execute Task (like output).
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
johnsayer
2013-11-29T15:17:26Z
OK, forget that I wanted the task to return output (I can live without that). I simply need the task to fail or complete (depending on the VBScript result).
Support
2013-11-29T15:19:21Z
Originally Posted by: johnsayer 

OK, forget that I wanted the task to return output (I can live without that). I simply need the task to fail or complete (depending on the VBScript result).



On some systems the "Wait for complete" is not simply reliable. There seems to be a bug in the Windows API regarding this. We have not yet found any workaround but to use our own remote execution.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top