scheduled-tasks

Soap Action error in WSO2 ESB Task configuration

允我心安 提交于 2019-12-13 19:30:23
问题 I have deployed a WSO2 ESB Proxy Service that works well: it sends a request for a dataset, in the outSequence of the proxy service I send response in a file (I set a sequence for doing it) and i can also visualize response in SOAP UI (or in the "try this service" page of the ESB). If I set a scheduled task it doesn't work: i set message (my xml right-working message in SOAP UI), injectTo (proxy), proxyName (my proxy name), format (my format) and SoapAction... I'm sure that the name of

Python subprocess.call on sfxcl.exe not working from Windows 2003 Task Scheduler

佐手、 提交于 2019-12-13 19:25:19
问题 I have written a script in Python to call SecureFX's commandline tool (sfxcl.exe) result = subprocess.call([securefx, '/NoPrompt', '/Q', '/RetryCount', retries, '/RetryDelay', '1', '/Log', sfxLogFile, '/List', '/S', session]) and then converted it into .exe using py2exe. I can schedule it locally on my WinXP machine and everything works OK. When I run it manually on the Win2003 environment, it also works. BUT when I schedule it using Windows Task Scheduler in Win2003, it runs through the

powershell Test-Path is not recognized as a cmdlet

此生再无相见时 提交于 2019-12-13 16:25:52
问题 As a follow up to my question powershell if-else does not follow either branch I've found another odd situation. I have a script that is running as a scheduled task once a day. The problem occurs only when run as a scheduled task (never from a command prompt, ide, or powershell window) and even then only on some days. The relevant code is $target_dir = "\\server\path\" $tmpStatus = "init" $err = $false try { $tmpStatus = Test-Path ( $target_dir + "receivals.tmp") } catch { $tmpStatus = $error

Windows Task Scheduler reports incorrect/inconsistent result code

拟墨画扇 提交于 2019-12-13 15:43:04
问题 Background: I am attempting to get email notification upon failure of a scheduled task. My task can indicate failure via exit code (errorlevel) and I want to use that and follow the filter approach described in this answer to trigger an email. Problem: I am getting inconsistent behavior from Task Scheduler on different machines and versions of Windows. To test, I'm using the following very simple task. Run only when user is logged on. (where "user" is the current user) Action: Start a program

Storing passwords for batch jobs

廉价感情. 提交于 2019-12-13 15:11:00
问题 I have a little java prog that uses a webservice which needs authorization. So the java prog (which is to be run using windows task scheduler) needs to have a user/password argument. How can I store these somewhere without having them laying around in a file as plaintext? So far I've tried using runtime.getRuntime and CACLS to have a plaintext file but alter the permissions so only the owner could open it (didn't work, not sure why). Password encryption doesn't work because if I pass the hash

Using task scheduler for running java jar (from batch file)

拜拜、爱过 提交于 2019-12-13 15:05:09
问题 I am scheduling a task (with windows task scheduler) which simply run a batch file. this batch is running a jar file (Java program) with a simple "Java -jar test.jar". When i run the script from the command line manually, the java program runs well and no exception is shown. but when the task schedular does the same (calling the command), the java program ends with an exception: "ClassNotFoundException" for one of the classes which is in my jar. What way be the cause of this? what is the

How to specify 'logger' for apscheduler

前提是你 提交于 2019-12-13 14:27:33
问题 I'm trying to learn how to use Python's apscheduler package, but periodically, it throws the following error: No handlers could be found for logger "apscheduler.scheduler" This message seems to be associated with errors in the scheduled jobs, for example, using jobTester as the scheduled job, the following code, which uses an undefined variable (nameStr0) in jobTester gives the above error message: from apscheduler.scheduler import Scheduler from apscheduler.jobstores.shelve_store import

Scheduling a Spark Job Java

混江龙づ霸主 提交于 2019-12-13 13:20:31
问题 I have a Spark job which reads an HBase table, some aggregations and store data to mongoDB. Currently this job is running manually using the spark-submit script. I want to schedule it to run for a fixed interval. How can I achieve this using java. Any library? Or Can I do this with Thread in java? Any suggestions appreciated! 回答1: If you want to still use spark-submit I would rather prefer crontab or something similar and run bash script for example. But if you need to run "spark-submit" from

Powershell script on remote computer not running as a scheduled task

六月ゝ 毕业季﹏ 提交于 2019-12-13 10:46:05
问题 I have a script on my domain stored on the Active Directory server. every machine on the domain has a task that when fired, calls this script to run. Running the task from the AD server works. Running the task from another machine doesn't work. However, running the command that is triggered from cmd manually on the remote computer works? Could anyone shine some light on this. Basically I call it like this so that the trigger is set up like... Action: PowerShell.exe Arguments: -noprofile

How To run vb.net with vbs scheduled task

99封情书 提交于 2019-12-13 09:33:22
问题 I'm trying to run a windows scheduled task to open a .vb script, but when i run the task, it just opens the .vb script and does nothing else. Is there a .vbs script that will open my .vb script visual studio and run my sub? I have a .vbs script that will open excel and run macros, just not sure how to do it with visual studio The sub runs fine when i do it manually in visual studio Thanks, Andy 回答1: It does have something to do with VB.NET. Although it took me a day to see the real question.