Community forum

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


Susheel
2010-12-20T10:09:19Z
Hello Henrik,
I have another challenge here. I hope this will be the last one in my automation process 😞.

1) I create a Job-A.
a) I create task Task-1 for RemoteExecution of an application Reformat on another system.
b) I create another task Task-2 which will save a file in a folder indicating the Job-A is completed so that another JOB-B which has a trigger for this .txt file being created will get triggerd. This Job-B will copy the resultant files created by Reformat application. If no files are created it will send a mail.

Now what happens is when Task-1 runs it just calls the applicatin Reformat on another system which takes some time to complete the process and generate the resultant files. But after the Task-1 is triggered the second Task-2 is triggered which should happen only after the Reformat application completes the process on remote machine. Is there any way to have this control as this is important step for knowing the result of process.

Thanks and regards,
Susheel
Sponsor
Forum information
Support
2010-12-20T10:15:44Z
In the current Windows implementation of remote execution you can't, out of the box, get feedback when a a remote process has finished. Only when it has been started successfully.

We have some plans of providing better remote execution, but as Windows is limited as it is, we will probably not spend more time on making that better but instead writing a remote agent that can run all of our Tasks.

What you could do, as a workaround, is to add a Process Trigger which watch the remote computer for terminating processes, and Trigger that way.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Susheel
2010-12-20T10:40:27Z
Hello Henrik,
I checked for adding process as trigger but the options shows only process on the current machine when I click on Select option.
Secondly Reformat application will be invoked by multiple jobs and might happen at the same time. example:
JobA triggers Reformat application
JobB triggers Reformat application
both might happen at the same time. Then how can I differentiate which process of Reformat was triggerd by JobA and which was by JobB.

Thanks and regards,
Susheel
Support
2010-12-20T10:47:04Z
You can set the computer name on the main settings of the Trigger. Then also set the correct Credential. The select the process name.

The short answer to your question is that you can't differentiate as this is a remote process with no connection to Process Trigger than the process name.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Susheel
2010-12-20T10:55:53Z
Thats a very tricky situation for me. As a workaround is there any way that I can trigger another JobB after and only after 5 hours of JobA has run.

Thanks and regards,
Susheel
Support
2010-12-20T10:57:52Z
It might be hard to follow but you could create Job C with a Wait Task, waiting for 5 hours. This Job is called by Job A (in a non synchrous mode) at the end of Task A.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Susheel
2010-12-20T11:03:12Z
Hi Henrik,
I think this can help me atleast. However please guide me how can i create a wait task for 5 hours.

Thanks and regards,
Susheel
Support
2010-12-20T11:20:04Z
There is a Wait Task, which you just set to 5 hours. In Job A you add the Job/Task Control Task - and call this new Job C
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Susheel
2010-12-23T03:45:53Z
Hello Henrik,
Thank you for all the help you given me in setting up this automation task. I have been able to do it using the wait task. However I find my job runs twice instead of runnig once. I have attached the log file with this post. Please let me know what is wrong in this setup.

Thanks and regards,
Susheel
Support
2010-12-23T11:13:56Z
Could be any of these two problems:

1. you have not checked "Put Job in queue" in main settings of Job with file trigger
2. You are using another combination than default "Created" and "Filename" in file trigger. Use default configuration.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top