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.


J.B. Churchill
2021-12-22T14:28:29Z
We have a new Visual Cron server install and I'm running some basic batch files that run python scripts. The batch file and python script write output files but running the job in Visual Cron is doing absolutely nothing.
My settings are here (in the screenshot). I've tried various combinations of the check boxes under Miscellaneous but none seem to make a difference. It is running in Execution Context = Background.

  image.png (439kb) downloaded 21 time(s).
Sponsor
Forum information
Joey S
2021-12-23T16:29:14Z
The execute script function is correct but the implementation will not work. What you essentially have a command to run something that then runs something else. You asking to open a file which then executes another program. The feedback for the "second program" will not make it's way back to VC

The answer was posted a few years ago

https://www.visualcron.c....aspx?g=posts&t=9755 

You will need, assuming you are using Windows, the following:
1. a python program that can run .py scripts. Like this: https://www.python.org/downloads 
2. setup your job to run the python program exe and then use the command line to indicate your script

image.png

I ran an example script this way and received an output

here is the script:
image.png
string = 'Python Bash Java Python PHP PERL'
search = 'Python'
count = string.count(search)
print("%s appears %d times" % (search, count))

Result
image.png
Support
2022-01-11T13:26:14Z
Originally Posted by: J.B. Churchill 

We have a new Visual Cron server install and I'm running some basic batch files that run python scripts. The batch file and python script write output files but running the job in Visual Cron is doing absolutely nothing.
My settings are here (in the screenshot). I've tried various combinations of the check boxes under Miscellaneous but none seem to make a difference. It is running in Execution Context = Background.

  image.png (439kb) downloaded 21 time(s).



Hi,

Just checking, are you still having an issue with this? Please send an email to support@visualcron.com with details, or reply in the thread if you do.
Michael
Support
http://www.visualcron.com 

Please like  VisualCron on facebook!
Scroll to Top