scheduled-tasks

VBScript and batch file fails when run by Task Scheduler

眉间皱痕 提交于 2019-12-25 02:06:42
问题 I have a VBScript that checks to see if MS Word is running hidden, makes it visible, then hides it again. here is the script code that works fine when I double click the file in Explorer: dim oWord Dim wshShell, btn Set wshShell = WScript.CreateObject("WScript.Shell") set oWord = getobject(, "Word.Application") if isobject(oWord) then on error goto 0 wshShell.Popup "Word is running, making visible", 7, "ALPS Push print", &H0 + &H40 oWord.visible=true wshShell.Popup "MS Word is now visible" &

rundeck: secondary sudo password authentication not working

霸气de小男生 提交于 2019-12-25 00:14:23
问题 <node name="***" tags="***" osFamily="***" username="***" hostname="192.168.***.***" ssh-authentication="password" ssh-password-storage-path="keys/nodes/${node.name}/ssh.password" sudo-command-enabled="true" sudo-password-storage-path="keys/nodes/${node.name}/sudo.password" /> Command: sudo mv /temp/hello.txt /path/to/destination/ Then I have added the password through key storage. I am sure that the password written in sudo.password is correct. I have rebooted rundeck server I can't get this

How to Schedule a daily task to run a batch file?

别等时光非礼了梦想. 提交于 2019-12-24 19:20:51
问题 I'm trying to schedule a task on Windows Server 2008 to delete some images on a folder. I create a batch file to execute this, my code below: forfiles /s /m *.jpg /D -10 /C "cmd /c del @path" (I didn't put the dir because I store the batch file on the same folder where I want to erase the images, so it's no necesary) My issue is at the time I try to schedule this task to run this automatically. Because when I manually run this file IT ERASE THE IMAGES SUCCESSFULLY, also when I schedule this

Task automation software on Windows servers [closed]

邮差的信 提交于 2019-12-24 15:58:38
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . We currently have Java program which runs a multitude of tasks on our Windows servers, we are planning to replace that with an open source task automation software for efficiency and maintainability reasons. The following are the features we are looking for: Ability to run tasks/scripts in any language (Java, C#,

Running a batch file from windows task scheduler, but hidden or minimized

自闭症网瘾萝莉.ら 提交于 2019-12-24 13:16:40
问题 I am running a .bat file from windows task scheduler every hour, the file is named: followers.bat And contains: @ECHO OFF C:\xampp\php\php.exe -f "C:\xampp\htdocs\Test\FollowTrackerV2\followers.php" It is entered in the task scheduler like so: program / script: C:\xampp\htdocs\Test\FollowTrackerV2\followers.bat parameters (optional): <blank> Start in (optional): C:\xampp\htdocs\Test\FollowTrackerV2 I tried adding parameter /min but that did not seem to work, it flashed a command prompt like

Dynamic pool of workers with MPI for large array C++

南楼画角 提交于 2019-12-24 11:29:46
问题 My question is how to create a dynamic pool of workers with MPI. There is a large (NNN = 10^6-7 elements) 1D array/vector. I should perform some calculations on each cell. This problem is extremely embarrassingly parallel. The idea is (it works fine): each MPI process (when run in parallel) reads common .dat file, puts values in local (to each rank) large vector of size NNN and performs computation on appropriate part of large array, the lenght of this "part" is NNN/nprocs, where "nprocs" is

Schedule Quartz.NET trigger that executes once a week

邮差的信 提交于 2019-12-24 11:26:30
问题 I need to schedule Quartz.NET trigger so that it fires on every Monday at 09.00. So, I tried to use some features as below but I think it does not true as the parameters are not logical (It worked for daily scheduling, but after change to this it does not). So, could you please give an example that executes job weekly? ITrigger trigger = TriggerBuilder.Create() .WithDailyTimeIntervalSchedule (s => s.WithInterval(1, IntervalUnit.Week) .OnDaysOfTheWeek(DayOfWeek.Monday) .StartingDailyAt

Discord.py Schedule

元气小坏坏 提交于 2019-12-24 10:38:21
问题 This is what I have so far... is does work for the amount delay seconds I want, but how to I add the time module or shedule module to make it work.. Just in case I want the bot to send the message every 24hrs import discord import asyncio from discord.ext import commands import schedule import time TOKEN = 'xxxxx' client = commands.Bot(command_prefix = '.') channel_id = '515994xxxxx5036697' @client.event async def on_ready(): print('Bot Online.') async def alarm_message(): await client.wait

Ruby on Rails - Users Scheduling Tasks

可紊 提交于 2019-12-24 09:57:56
问题 I am working on an application which people can sign up to and schedule tasks to be done. When the user schedules a task they enter a date and time. I want the application to wake up and send an email to the user at the date and time they have entered. I am unsure what gems/plugins to use in rails to achieve this, anyone have a suggestion? Cheers Eef 回答1: delayed_job should do the trick. It allows you to schedule tasks to run at a particular time. All you need to do is schedule a function

Simple c++ program fails to run as a scheduled-task (interactive/non-interactive issue?)

南楼画角 提交于 2019-12-24 09:35:39
问题 I'm running Win 7 x64 and I've written a very simple c++ program with Microsoft Visual c++ 2010 express, to be run as a task in task scheduler. this is the programs code (there's no resource files or header files): #include <windows.h> int WINAPI WinMain(HINSTANCE inst,HINSTANCE prev,LPSTR cmd,int show) { // Simulate numlock key press keybd_event( VK_NUMLOCK, 0x45, KEYEVENTF_EXTENDEDKEY | 0, 0 ); // Simulate numlock key release keybd_event( VK_NUMLOCK, 0x45, KEYEVENTF_EXTENDEDKEY | KEYEVENTF