scheduled-tasks

Scheduled task on Azure that runs a webpage with javascript

≡放荡痞女 提交于 2020-02-28 23:11:40
问题 I have a data-driven view on an Azure site that renders a lot of JavaScript/ CSS / XML and HTML from a third party plugin and generates a PDF which is emailed to a user. I need to call this page on a weekly schedule for each user - and with Azure Jobs it's really straightforward to set this up. But obviously there will be no JavaScript engine to render the code that generates the PDF, so what are my options? Would I have to go down the route of installing NodeJS on my Azure instance? If so

GetProcessesByName() and Windows Server 2003 scheduled task

被刻印的时光 ゝ 提交于 2020-02-25 08:23:42
问题 Does anybody know what user privileges are needed for the following code needs to successfully execute as a scheduled task on Windows Server 2003: System.Diagnostics.Process.GetProcessesByName(Process.GetCurrentProcess().ProcessName) When NOT running as scheduled task i.e. under a logged in user, as long as the user is a member of "Performance Monitor Users", this code will not throw an exception. When running as a scheduled task under the same user account, it fails. The only way I can get

GetProcessesByName() and Windows Server 2003 scheduled task

拈花ヽ惹草 提交于 2020-02-25 08:23:07
问题 Does anybody know what user privileges are needed for the following code needs to successfully execute as a scheduled task on Windows Server 2003: System.Diagnostics.Process.GetProcessesByName(Process.GetCurrentProcess().ProcessName) When NOT running as scheduled task i.e. under a logged in user, as long as the user is a member of "Performance Monitor Users", this code will not throw an exception. When running as a scheduled task under the same user account, it fails. The only way I can get

Task Scheduler - Access non-local drives while running task not logged in

假装没事ソ 提交于 2020-02-18 05:33:31
问题 I had a task in win scheduler that runs every minute. The task runs a .bat file which SVN updates a series of folders then executes a perl script (which in turn will run off several others). The output/'log' of the perl script (tagged by date/time) is sent to a shared drive, not local to the machine the task runs on. The whole task works flawlessly until sending the log to the shared drive. Since the task needs to run every minute I figured it would be best to use the setting 'Run whether

Task Scheduler - Access non-local drives while running task not logged in

痴心易碎 提交于 2020-02-18 05:33:12
问题 I had a task in win scheduler that runs every minute. The task runs a .bat file which SVN updates a series of folders then executes a perl script (which in turn will run off several others). The output/'log' of the perl script (tagged by date/time) is sent to a shared drive, not local to the machine the task runs on. The whole task works flawlessly until sending the log to the shared drive. Since the task needs to run every minute I figured it would be best to use the setting 'Run whether

How to call function every hour? Also, how can I loop this?

点点圈 提交于 2020-01-31 03:19:11
问题 I need a simple way to call a function every 60 minutes. How can I do this? I'm making a MineCraft bukkit plugin, and this is what I have: package com.webs.playsoulcraft.plazmotech.java.MineRegen; import java.util.logging.Logger; import org.bukkit.Location; import org.bukkit.block.Block; import org.bukkit.event.block.Action; import org.bukkit.event.player.PlayerInteractEvent; import org.bukkit.plugin.java.JavaPlugin; public class Main extends JavaPlugin{ public final Logger log = Logger

How to call function every hour? Also, how can I loop this?

南笙酒味 提交于 2020-01-31 03:18:02
问题 I need a simple way to call a function every 60 minutes. How can I do this? I'm making a MineCraft bukkit plugin, and this is what I have: package com.webs.playsoulcraft.plazmotech.java.MineRegen; import java.util.logging.Logger; import org.bukkit.Location; import org.bukkit.block.Block; import org.bukkit.event.block.Action; import org.bukkit.event.player.PlayerInteractEvent; import org.bukkit.plugin.java.JavaPlugin; public class Main extends JavaPlugin{ public final Logger log = Logger

PowerShell unable to use enum MultipleInstances

心不动则不痛 提交于 2020-01-30 11:38:06
问题 I am looking to use Powershell to set "if the task is already running, then the following rules applies: to "Do not start a new instance" my powershell script looks like below: $Task = Get-ScheduledTask -TaskName "MyJob" $Task.Settings.MultipleInstances= "StopExisting" Set-ScheduledTask -User "USER" -Password "PASS" $Task I get error as : Exception setting "MultipleInstances": "Cannot convert value "StopExisting" to type "Microsoft.PowerShell.Cmdletization.GeneratedTypes.ScheduledTask

Task Scheduler doesn't execute batch file properly

倖福魔咒の 提交于 2020-01-28 02:25:51
问题 I have a batch file to run a powershell program. When I double click the batch file, it runs the powershell code to generate an EXCEL spreadsheet email this EXCEL spreadsheet I even see this action happening. However, when I use Task Scheduler to execute the batch file, it will run, but it will neither generate an EXCEL spreadsheet, and it certainly won't email the EXCEL spreadsheet. I have created other tasks to run other batch programs to execute powershell programs, and I never had this

Task Scheduler is not supporting option “Run with highest Privilege” and “Run weather user is logged on or not”

情到浓时终转凉″ 提交于 2020-01-25 17:23:56
问题 I am trying to schedule Task on Task Scheduler, every thing is working fine unless I tick "Run with Highest privileges" or "Run weather user is logged on or not" As soon as I tick this, scheduler stop triggering my Script. Script- .Bat file using Power Shell command. Can any one figure out what went wrong? Edited- ( Changed file location from drive to network drive) @Echo Off :: SDate=DAYMONTHYEAR FORMAT of Systemdate ::set SDate=%date:~7,2%%date:~4,2%%date:~10,4% ::Variable for folder path