Questions tagged [schedule]

The schedule tag should be used for questions about scheduling events, like running applications or processes on a planned time.

Filter by
Sorted by
Tagged with
0 votes
2 answers
3k views

The kernel use which scheduling algorithm?

I know there are a lot of scheduling algorithm for processor. like FCFS ( first come first served ) Or SJF (short job first) and so on. How to know the kernel using which algorithm ?
0 votes
1 answer
425 views

unattended-upgrade on specific day?

I have a few clustered servers which I want to upgrade with unattended upgrades - but on different days of the week. Since I can loose multiple nodes in the cluster I want to ensure that one runs ...
2 votes
0 answers
97 views

How to auto-shutdown Ubuntu Server 23.04 when inactive/hdd not used

I have a media server with 1 hard drive. I use it daily at evening, so it would be a waste of electricity if the server is turned on 24/7. So, I want to shut it down when it is not in use, ...
0 votes
0 answers
106 views

Schedule Shutdown returns an error: No buffer space available

I have set up a few new headless Ubuntu servers. :~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.1 LTS Release: 22.04 Codename: jammy ...
20 votes
2 answers
12k views

Cant stop FortiClient vpn from starting on startup

I'm using FortiClient for VPN purposes only and don't need it running any other time. I can't get disabled from starting on startup. How to disable auto-launching of FortClient on startup?
31 votes
4 answers
53k views

Suspend and wake PC at certain time

I want my PC to sleep at 04:58 and wake at 05:15, every day. How do I do that?
14 votes
1 answer
14k views

Manually run an Anacron Job

I have performed a minimal installation of UBUNTU. I trying to configure my system to take automatic backups using rsnapshot. I have successfully configured my rsnapshot.conf file and by running ...
2 votes
1 answer
3k views

How to install gnome-schedule on Ubuntu 22.04?

Finally upgraded to Ubuntu 22.04 and my favorite application gnome-schedule (I somehow managed to install it for 20.04) is not working. I tried to follow install instructions here https://gitlab.gnome....
140 votes
6 answers
473k views

How can I schedule a nightly reboot?

I'm having some periodic issues running a particular application, XBMC. If I use XBMC regularly I don't seem to have any issues but if I leave it unattended for more than about 12 hours I need to ...
21 votes
3 answers
16k views

check-new-release process eating up resources on Ubuntu server 13.04

A small Ubuntu 13.04 virtual machine instance I run in a cloud environment regularly becomes slow/unresponsive because of a proces called check-new-release. Is there any way to disable this process ...
38 votes
3 answers
16k views

How can I run anacron in user mode?

I would like to set up a scheduled task via anacron but I would like to do so in user mode. How can I achieve this?
0 votes
1 answer
291 views

How can I adjust the "Remind me later" time for upgrade Ubuntu notifications?

It seems like I am getting a pop up every day or every other day to upgrade Ubuntu. I click on the "Remind me later" but "later" ends up being tomorrow! I don't want to forget it ...
0 votes
0 answers
684 views

Transmission Gtk-WARNING **: <time> cannot open display: :0.0

Ubuntu 22.04 I'm trying to use crontab to launch Transmission at 22:04 and kill it at 07:00. To launch it at 22:04, I use: 04 22 * * * env DISPLAY=:0.0 transmission-gtk But I get the error: (...
0 votes
1 answer
559 views

Change how often the cron job for PHP's internal garbage collection runs

I want to modify the cron job at /etc/cron.d/php that runs PhP's garbage collector every half an hour at xx:09 and xx:39. This is the content of the cron job. # Look for and purge old sessions every ...
0 votes
1 answer
5k views

How can I schedule one(!) reboot? [duplicate]

Say I want my machine to reboot tomorrow at 02:00 am. And not again later, just that one time tomorrow morning. How can I do this?
15 votes
2 answers
31k views

How to run a program with SCHED_RR policy from command line?

By default programs run with Time Sharing (TS policy) on Linux. How to run a program with SCHED_RR policy on Linux from command line? Thanks for giving information about chrt(1) command. I have used ...
0 votes
1 answer
92 views

Scheduling tasks a certain amount of time after login

I have written a python program that reads from email. If a certain string is received from email then it does nothing. But if the python program does not receive that string, it runs a bash script, ...
2 votes
2 answers
4k views

Run and kill a bash program at a scheduled time

I need to run a bash program at scheduled times (based on local time) on my Ubuntu 16.04. For instance, this is what I need: Mon-Thursday, 10AM to 6PM AND Friday 10AM to Saturday 6PM: bash runme.sh ...
4 votes
2 answers
3k views

Is it possible to a crontab file containing 1k+ lines of schedules?

I'm planning to create scheduled tasks and I want linux to handle those tasks using crontab. Note: some tasks have different schedules and some are the same [crontab file (schedule.cron)] * * * * * ...
2 votes
2 answers
1k views

How can I change the frequency of the Lubuntu Update Notifier (Lubuntu 20.04)?

It pops up every hour, even though I went into Preferences > Software Sources > Updates and set the schedule to weekly and rebooted (and daily is the shortest period offered in that dialog.) ...
0 votes
1 answer
296 views

Patching on a specific date each month - how?

I am looking to setup an environment where our Staging and Dev servers are patched in the 2nd week of a month - lets say Thursday. Then 2 weeks later - again on Thursday, we patch production. This ...
0 votes
1 answer
272 views

How to hibernate after some time or when battery is discharged

I use Ubuntu 21.04. sudo systemctl hibernate works fine to hibernate. But suspend doesn't (see: Some buttons don't work after suspend andresume) How can I automate hibernation when using battery ...
117 votes
6 answers
158k views

Conveniently schedule a command to run later?

What's a simple way to run a command, say, 8 hours from now? I can think of this way: nohup bash -c "sleep 28800 ; ./mycommand.sh" & Is there a more "proper" way?
1 vote
0 answers
308 views

Is there a way to queue scripts in ubuntu/debian/linux?

I have a strange question(at least to me!), but I'm not sure how to even approach it. Background I have a few batch jobs(python scripts called via cron or python script being called by bash script). ...
0 votes
0 answers
147 views

Can we delete all partitions in disk using gparted tool as scheduled task or automatically?

I want to clean up the disk before using it. I am doing this manually. Help me out to automate this/ schedule this.
8 votes
4 answers
8k views

How can I use the notify-send command in combination with the Calcurse calendar?

I use the calendar and scheduling application calcurse. This is a fine command-line program. For example, with calcurse -a you can display the events for the day. How i can send this info to notify-...
3 votes
3 answers
2k views

Foreground task scheduling in Linux similar to Windows's Task Scheduler

I have a batch application on Windows that I run every day at midnight. Recently, I converted this into a Linux shell script on a Linux machine and would like to similarly run it every day at midnight....
1 vote
0 answers
56 views

Scheduling using systemd on Ubuntu on a Raspberry Pi

We have a Raspberry Pi, running Ubuntu 20.04 LTS, which is used to run several regularly scheduled jobs. The jobs consist of Python scripts, and are run using systemd timers and services. This worked ...
2 votes
2 answers
7k views

confusion about cron and anacron (setting up backup schedule for rsnapshot)

I am trying to set up a not too complicated backup schedule with rsnapshot on a laptop running Ubuntu 16.04 LTS. The plan is to retain two daily backups and 24 hourly backups. I think this is the ...
1 vote
0 answers
172 views

How to use taskset with more than 128 cores?

I am using taskset with more than 128 cores. I know that a cpu with less than 32 cores can run the following: taskset -p 0xFFFFFFFF pid How do I present the other cores besides the 32 cores. Thanks.
1 vote
3 answers
648 views

LuckyBackup superuser scheduled backups do not run

I am currently running Ubuntu Studio 20.10 on a Dell desktop PC. I have two different accounts, and would like to use LuckyBackup in superuser mode to run the backups and retain permissions. The ...
1 vote
1 answer
584 views

How to schedule task on Linux Desktop

How to schedule task on Ubuntu Mate 20.04 Desktop, to run bash script.sh once a day on Tu/We/Thu/Fri/Sat, after laptop startup? Note: I can run job once a day by Anacron on laptop starup: /etc/...
0 votes
1 answer
68 views

How can you schedule regular tasks to execute when available?

I want to schedule some tasks on my ubuntu 20.04 destkop to execute regularly. Like backups or downloads from certain sites or whatever. I have been using crontab for this, but if so happens that my ...
0 votes
1 answer
307 views

Is it possible to schedule trash cleaning?

I was wondering if it is possible to do this, because I have to delete a lot of files during job day, and I prefer to do it on interface and no using sudo rm, so if it's possible... how? For example, ...
3 votes
1 answer
2k views

How do I set up a cron job on Snappy?

If I run sudo crontab -e I can edit the crontab, but it's read-only so nothing gets saved.
2 votes
0 answers
29 views

Samba share write access allowed in chosen time - how to do it?

I would like to configure a samba share to be writable only within scheduled time. What is the best method to do it? Regards Kriss
0 votes
0 answers
175 views

Why `at` can't find `mail` even if it's in every path, including the systemd unit?

I'm trying to get the logs of at, which AFAIK are sent via local mail. The problem I'm having (on Ubuntu 20.04) is that I've configured the mail, and the PATH, but any time I execute at, the syslog ...
1 vote
1 answer
3k views

Schedule a crontab edit

Is it possible to schedule a crontab edit? I mean, for example, tomorrow at 10 AM I want to schedule something. Is there a way to crontab a script that tomorrow will edit crontab (scheduling something)...
0 votes
1 answer
1k views

xrandr script for external monitor adjustment not executing from udev

My laptop has a 4k screen and I also have an external 1080p monitor. The scaling is incorrect on the monitor and so every time I plug in the monitor, I execute an xrandr command to fix it. I figured I ...
31 votes
7 answers
86k views

Scheduling StartUp and ShutDown

I use Torrents often, so I need to know how to make my computer start up and shut down automatically, Wi-Fi is switched on at six in the morning in my hotel and switched off at two AM. (I am able to ...
7 votes
2 answers
7k views

Check if shutdown schedule is active and when it is

I have been trying to determine if a shutdown has been scheduled in my system (Ubuntu 17.10). If I input via terminal "shutdown 100", it confirms that system will shut down at a time. But later on, ...
1 vote
2 answers
907 views

How do I create a systemd timer running an event twice a month?

I am simply not able to figure out how to create a systemd timer that is run twice a month. Every two weeks would work also. Can someone please enlighten me?
1 vote
1 answer
487 views

How to run a task on login of *any* user (or any member of a particular user group)

I have found many explanations of how to schedule a task to run on system start (which I am already doing by means of an entry starting with @reboot in /etc/crontab) or on login for a particular user (...
0 votes
1 answer
1k views

Cron job scheduling for last Saturday of every month at 09:00 AM

Is their any way to schedule a CRON Job, which triggers the script only on last Saturday of the month. Please advise.
0 votes
0 answers
255 views

How do I schedule boot ubuntu 18.04LTS?

I have tried the WakeOnLan Application but it does not work in 18.04 LTS as provided in following solution: Scheduling StartUp and ShutDown I have dual boot windows 10 and Ubuntu So I cannot change ...
0 votes
1 answer
229 views

Script misbehaving with scheduled using "at"

I would appreciate advice on why a script would run fine when the script is launched from a terminal command line, but some commands in the script seemingly do not run when the script is scheduled ...
2 votes
1 answer
2k views

Is it possible to schedule `fsck` command and run it in background?

I want to run periodically the fsck Terminal command, so it will run, let's say, every Friday at 10 am. Also, I'd like it to run in background and save the output in file, let's say, ~/Documents/...
1 vote
1 answer
821 views

Crontab not running task [duplicate]

I did crontab -e then added */2 * * * * /usr/bin/notify-send "test", which is supposed to send a notification every 2 minutes, but it's not working. The crontab file looks like this. # Edit this ...
2 votes
1 answer
564 views

Run AIDE at the selected time of the week

How can I configure aide linux to start at the selected time of the week, e.g. on Sundays at 9?
1 vote
1 answer
1k views

Can I run a scheduled task once? [duplicate]

This might be a duplicate post but couldn't find one. I'm looking for a way to run a shell script once at a specific time. Like run it once at 16:00 then remove from queue. crontab has no setting ...