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


chindall
2012-09-11T20:38:58Z
For the longest time I have used VisualCron for all of our vbscript scripts. Normally I use Execute Task, set execution to foreground and use cscript to execute my scripts. This has disadvantages because if the script fails VisualCron still returns a green check because there is nothing being passed to say otherwise. Execute Script is the ideal way to work however this runs in the background only. Our scripts launch applications like WSFTP scripting or Terminal applications such as Zoc. I have tried everything from loaded a profile and different execution techniques. Nothing works. I really want to use this important feature so I can get proper results from my scripts. Any help is greatly appreciated.
Sponsor
Forum information
Support
2012-09-12T06:15:17Z
So, the question is why your scripts are failing? Have you tried using the latest version and check "Local login" and "Load profile" at Credential level (the Credential that you use).
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
chindall
2012-09-12T13:54:52Z
The scripts are not failing. The scripts launch a program. If using Background Task launching those programs will not work. I need to be able to launch the programs in the foreground. Some programs do not cause the Visual c++ run time error but do stall because they don't seem to be able to run in the background.

Is there any possible way to execute scripts in the foreground?
Support
2012-09-12T16:45:18Z
I was just searching for the main reason why those Tasks do not work in the background? If that is known maybe we can have a better workaround.

Foreground execution is not yet possible with Execute script Task but could be implemented. I am moving this topic to Feature requests.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
chindall
2012-09-12T18:54:28Z
Originally Posted by: Support 

I was just searching for the main reason why those Tasks do not work in the background? If that is known maybe we can have a better workaround.

Foreground execution is not yet possible with Execute script Task but could be implemented. I am moving this topic to Feature requests.



The Applications launched are Terminal Programs (Zoc) and FTP (WSFTP) which work fine in the foreground but do not run well in the background.

Zoc - http://www.emtec.com/zoc/ 

WSFTP - http://download.cnet.com...000-2160_4-10562420.html 
chindall
2012-10-22T16:04:19Z
Is there any update on this? This is really needed by my company to continue to use VisualCron successfully.
Support
2012-11-16T17:46:43Z
I think there is an easy workaround. You can just use the Execute Task which has the foreground option. The only thing you need to do, if it is a vbscript, is to put full path to wscript.exe in command and full path to your script in argument.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top