Questions tagged [scheduled-tasks]

A scheduled task is a computer task that is scheduled to happen at a certain time and may repeat.

Scheduled tasks are used for automation so that human presence in not required in order to execute the required task at the required time. Tasks may be scheduled to run once, or repeatedly at a specific time of a specific date.

Tasks may also be scheduled to run when specific preconditions are met. This is usually achieved by running a second scheduled task that runs sufficiently frequently, checking for preconditions, executing the desired program when these preconditions are met.

Tasks may be scheduled:

  • On *NIX: using cron. See
  • On Windows: using Windows Scheduled tasks

Lots of task automation software exists, including

7207 questions
2
votes
0 answers

Schedule a SQL Server Migration Assistant every morning to happen automattically

I have a a2ssproj that is run every morning that migrates MS Access data Tables into Microsoft SQL server Management Studio. It usually take an hour and half. I was wondering if there is a way to use a task scheduler to execute this every morning…
user10349555
2
votes
1 answer

Schedule Scrapy Spider via Batch with Win10 Task-Scheduler

I´m still pretty new to python, but I managed to get my spider to crawl the things I need. Then I created a batch file, to run that spider. The batch looks like this: call C:\Users\Tribic\Anaconda2\Scripts\activate.bat call cd cmc\cmc\spiders\ call…
Tribic
  • 108
  • 1
  • 9
2
votes
2 answers

Python windows task to run with admin

I am looking for some Python code to create a Windows Task in the Task Scheduler, it needs to run at start & have the highest permissions level (admin). // description of your code here Uses the new COM Task Scheduler Interface to create a new…
Zero
  • 297
  • 1
  • 12
2
votes
1 answer

Python script runs manually on google vm, but gets killed if put in while true loop for scheduling

I have a python script that runs fine when I run it via python3 script.py & on the the google vm, but then when i detach it with a screen and leave it run a couple iterations on its own I come back to check and it gets killed. I think it might be…
2
votes
1 answer

How to schedule to run SQL script on SQL Server?

I want to use MS SQL Transact-SQL to schedule to run a script C:\script\my_script.sql at 6 pm every day, except Saturday and Sunday. Then, the result is saved in the folder C:\data\xxx.csv where xxx is the date of running the script, e.g.…
Chan
  • 3,605
  • 9
  • 29
  • 60
2
votes
2 answers

php script require() statement fetches file when running from browser but not when running from Plesk CRON job

I have a task script that works perfectly fine if i run it by visiting the php file from my browsers. However, when i attempt to run it via Plesk Task Scheduler it fail with a fatal error unable to load the require() file. The require statement is a…
aviya.developer
  • 3,343
  • 2
  • 15
  • 41
2
votes
1 answer

When laravel schedule Monthly() exactly Run?

i have create one command and set it to run on every month like $schedule->command('send-reports') ->monthly(); Now my Question is when it's Run exactly ?? At start of month like 2019-02-01 00:00:00 OR At end of month 2019-01-31…
vishal ribdiya
  • 1,013
  • 2
  • 12
  • 20
2
votes
0 answers

Cron job appendOutputTo not append anything in Laravel

I have a problem in my project. I cannot append output in my cron job. Here is my code
Habib Hassan
  • 175
  • 2
  • 14
2
votes
2 answers

task scheduler thinks python script is still running

I have a python script which in turn executes other python scripts. I put this as a task on WinXP task scheduler. the thing runs - command prompt is opened, sparks are flying, magic happens... eventually the task is completed, I get a nice 'print…
Hanan
  • 1,395
  • 4
  • 18
  • 29
2
votes
1 answer

Msgbox in PowerShell script run from task scheduler not working

I have a PowerShell script that creates a schedule task to launch the script. The idea is there are some task in the script that requires reboot. At the end of the PowerShell a message box should prompt the user to let the user knows that all the…
nickyung
  • 23
  • 5
2
votes
5 answers

How can I fix the task scheduler error 0x00041303 or 0x41303?

I have a task scheduler in the task scheduler but it does not execute. in the column last run results aparace the following information: 0x41303. Note: I already searched a lot and could not get any answers
João Nzuzi
  • 23
  • 1
  • 5
2
votes
3 answers

batch file copy and move base on current month

Currently i have a specific batch file i need to run every month. I would like to combine it into one bat file. with condition if its 1st of February use feb-19. If current date is January 2019 run copy "C:\TESTone\*.*" "C:\Jan-19" move…
Higara
  • 21
  • 2
2
votes
1 answer

Long running spring scheduled task

I have a Spring scheduled task defined in context.xml file which run every minute. the task calls a postgres stored procedure. The Stored procedure run time can last more than a minute. Will the spring framework call the same scheduler if the…
Danny Fried
  • 106
  • 9
2
votes
1 answer

Start-ScheduledTask queues task instead of running it

I'm having issues with creating scheduled task remotely on a computer. This is my script: $Action = New-ScheduledTaskAction -Execute "Robocopy" -Argument"""$downloadDirectory"" ""$fullDirectory"" /e /mt:32 /r:2 /w:2 /z /eta" Register-ScheduledTask…
Tobias KKS
  • 130
  • 1
  • 4
  • 17
2
votes
1 answer

Discord.py Schedule

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…