Hi,
I am evaluating VisualCron for our business needs and am in a bind with regards to what the Variables option does.
The task I am trying to set up is of the type "Execute". It is a batch file which takes in up to 6 command line arguments. Now the batch file makes use of an environment variable and runs some python scripts. For one, it does not identify the environment variable (%my_files%) and also does not identify the python script directory which is in my %PATH%.
I went through the documentation but couldn't really find anything to help me on this. How can I not alter my scripts and make VisualCron identify my environment variables?
I am using VisualCron 5.6.2 [2010-06-29]
On a sidenote, the link in the example which explains using arguments/parameters for a job is broken.
Thanks.
Ankur
UPDATE:
After much mucking around I modified my task to be executed in Foreground mode and also checked the "Use shell execute" box and it was able to identify my environment variable. Have not checked if the PATH is being identified since it has to work on the network. The strategy outlined in another thread to pass VisualCron variables as parameters also failed. When I did that test I did not have the Foreground or the use shell execute options enabled.
Obviously since I am using the shell execute option I am losing my output. Is there a simple way to capture that? Or if someone can suggest an alternative to my approach that'd be great.
Further, I plan to queue my jobs on a machine based on CPU usage. What is the ideal Trigger to set for the same? I trolled the Performance Counter but didnt find any obvious equivalent in the Process/Processor/ProcessorPerformance entries. Will appreciate pointer in the right direction.
Edited by user
2010-09-10T07:34:00Z
|
Reason: Update with new findings