Questions tagged [periodic-task]
218 questions
-1
votes
2 answers
Calling a function periodically in C
I want to call a function which creates files periodically on every 5 seconds in C.
The function code is below which creates files.
void file_create(int time) {
snprintf(filename, sizeof(filename),"%s_%d", "data", index);
FILE *fp =…

Vimalan E
- 351
- 3
- 12
-1
votes
1 answer
How to run a task one day per week between given time window in Linux?
I need to run a specific bash only on a given day of the week, between a given time window and only once.
For sake of clearity, in my case, these conditions are: "running a bash script every Thursday between 5pm and 9pm only once". The conditions…

Uncle Ben Ben
- 482
- 3
- 11
-1
votes
2 answers
Timer not able to execute task
I am trying to execute a task periodically. For example:
class MyTimerTask implements TimerTask
{
public void run() {
// Some actions to perform
}
Timer cleaner = new Timer(true);
cleaner.scheduleAtFixedRate(new MyTimerTask(), 0,…

mudassir nazar
- 13
- 3
-1
votes
1 answer
Quadcopter controller program from smartphone
I'm developing an Android application to control my quadcopter from the smartphone: I have a periodic process that sends the data acquired from the touchscreen.
The data in then received from a microcontroller, that generates a PWM command to 4 DC…

Daniel
- 141
- 3
- 14
-2
votes
1 answer
How to periodically update content in Win 8.1 app
How can I periodically update (i.e. all 10s) a class in my ViewModel by call an async Webservice call in a Win 8.1 Universal app?
I tried with a DispatcherTimer but the timer can't handle the async part.
Here is my code i tried:
_myTimer = new…

user2025830
- 872
- 2
- 17
- 37
-2
votes
1 answer
periodic tasks at random time intervals in a day celery django
I have to download some files from source at 10AM,1PM and 12AM in a day and after downloading is done,I need to send them to my database. I want to do this daily. What should i write in the space for "code for periodic tasks". Also please tell me if…

user4327436
- 1
- 1
-2
votes
3 answers
Running Periodic Task
I'm developing a c# application that periodically sends message to a device.
First question : What is the best way to run a function that sends message periodically (every 1 second)?
Second question : Sometimes I want to stop periodic request, run…

penguru
- 4,342
- 11
- 46
- 56
-3
votes
1 answer
Example using Windows Task Scheduler for event that fires yearly in one and the same day (November, 15 for example)
I have service. I want to verify, if date now == some date -> do something
How can I use Windows Task Scheduler for event that fires yearly in one and the same day (November, 15 for example)
Please give me example of using Windows Task Scheduler…

user2889383
- 89
- 1
- 2
- 8