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
0 answers
12 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: (...
user avatar
0 votes
1 answer
32 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 ...
user avatar
  • 396
0 votes
1 answer
52 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?
user avatar
  • 342
0 votes
0 answers
19 views

How to schedule a command that invokes GUI in linux

How to schedule a command that invokes GUI in linux I tried "at" command but it's unable to invoke GUI
user avatar
0 votes
1 answer
28 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, ...
user avatar
0 votes
1 answer
63 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 ...
user avatar
  • 15
0 votes
1 answer
111 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 ...
user avatar
1 vote
0 answers
140 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). ...
user avatar
  • 141
0 votes
0 answers
60 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.
user avatar
3 votes
3 answers
898 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....
user avatar
1 vote
0 answers
48 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 ...
user avatar
  • 11
1 vote
0 answers
73 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.
user avatar
  • 11
0 votes
1 answer
41 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 ...
user avatar
  • 707
1 vote
1 answer
261 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/...
user avatar
  • 129
2 votes
2 answers
498 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.) ...
user avatar
  • 123
0 votes
1 answer
273 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, ...
user avatar
9 votes
1 answer
5k 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?
user avatar
0 votes
3 answers
205 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 ...
user avatar
  • 175
2 votes
0 answers
20 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
user avatar
  • 21
0 votes
0 answers
59 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 ...
user avatar
  • 2,108
1 vote
1 answer
1k 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)...
user avatar
  • 11
0 votes
1 answer
412 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 ...
user avatar
1 vote
2 answers
447 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?
user avatar
  • 1,531
1 vote
1 answer
208 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 (...
user avatar
  • 186
0 votes
1 answer
529 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.
user avatar
0 votes
0 answers
80 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 ...
user avatar
0 votes
1 answer
221 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 ...
user avatar
2 votes
1 answer
1k 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/...
user avatar
  • 1,755
1 vote
1 answer
715 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 ...
user avatar
1 vote
1 answer
247 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?
user avatar
1 vote
1 answer
442 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 ...
user avatar
  • 114
0 votes
1 answer
69 views

I need to stop a execution of a command and start the same comma every x interval of time in terminal?

I need to stop execution of a running java script in terminal and start the same execution at every x interval of time in terminal. Is it possible?
user avatar
0 votes
0 answers
2k views

how to automate a shutdown with delayed reboot

I maintain a file server for a research lab, and I need to figure out how to automate shutting down the server while incorporating a delayed reboot. The electricity is being serviced in our building, ...
user avatar
  • 147
2 votes
0 answers
63 views

Can I schedule updates for a specific time of day? [duplicate]

Satellite based internet is my only option. My ISP is not reliable and I must schedule downloads (ex. updates, video) to off-peak hours. I am very new to Ubuntu. My ISP does not throttle my speed ...
user avatar
1 vote
1 answer
178 views

Why does `at` remove my scheduled events?

I set an at scheduler command like at -f **its_time** 23:57 when in the its_time file I put libreoffice /home/user/ist_time.odt I scheduled but the "system" or whatever is removing yourself my at ...
user avatar
  • 21
4 votes
3 answers
177 views

Cronjob every 1445 minutes

First of all, sorry my bad English. Im new to Crontab and i was making some schedules. I was scraping some data from the internet with Python and i have this website that when you scrape some data, ...
user avatar
  • 143
0 votes
1 answer
32 views

Give scheduling rights with security.conf

I am running a C++ program which wants to enforce its own scheduling policy. It keeps giving warnings that it doesn't have the rights to, and I want to give it all the rights that it wants! I tried ...
user avatar
  • 565
2 votes
1 answer
403 views

Set grub2 to boot into Ubuntu on weekdays and Windows on weekends

Using the excellent answers from this thread I've been able to schedule booting into different OSes at different times of day. However, I would like to get the community's advice on how to boot into ...
user avatar
  • 123
2 votes
1 answer
976 views

Force ubuntu to log out at a specific time

I'd like to force my account to log out at a specific time as a self-restraint measure (e.g., to ensure I go to bed on time). And for the script to run whenever I try logging in after that time ...
user avatar
1 vote
1 answer
3k views

Does cron automatically adjust to a timezone change?

I added a cron job with crontab -e. Then, I changed the timezone. However, it seems as if the cron job is still firing in the old timezone. Do I need to restart it cron? (e.g. service cron reload) ...
user avatar
  • 121
0 votes
0 answers
36 views

Swap config files at certain times [duplicate]

I am trying to make a script that switches files at different times of days so that my settings are pulled at different times like a day mode and a night mode. If I have a file 1, 2, and 3 which 3 is ...
user avatar
2 votes
2 answers
3k 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 ...
user avatar
  • 283
0 votes
2 answers
657 views

How do I chain execution of scripts? [duplicate]

I want to automate running a Python script. And I think I already know how to do that with a cron entry. The problem is that I need this script to run again only if a previous one has finished. The ...
user avatar
1 vote
2 answers
58 views

Schedule boot on old hardware

I've turned an old desktop in a home server. I would like to be able to boot and shutdown on schedule. Shutdown is easy with a cronjob. The boot part is tricky. This is an old Pentium 4. There is no ...
user avatar
  • 13
5 votes
2 answers
4k 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, ...
user avatar
0 votes
1 answer
5k views

Configure unattended-upgrades to run only at a certain time of the day?

I have some kind of internet that I don't really recommend to anyone, but there -- it's a limiter traffic (4G from a mobile carrier). Fortunately, in a way, the night traffic is free, so I am looking ...
user avatar
  • 11
1 vote
1 answer
451 views

Running Scheduled Task - .sh file not working [closed]

I'm trying to run an sh file to move files around with scheduled tasks. See GUI pic. The result from "run Selected Task" is: /tmp/tmp8yj5zs: line 1: /home/dan/Foscam/move-video.sh: Permission ...
user avatar
  • 55
8 votes
1 answer
23k views

Schedule apt-get script using cron

I'm kinda new in Linux and I've just learned about scheduling tasks with cron. I have this small shell script that I've been using manually till now: sudo apt-get check && sudo apt-get update ...
user avatar
1 vote
0 answers
78 views

Is there a more granular cron-like scheduler? Instead of just by the minute, but at a certain second? [duplicate]

I would like to use a small linux system to do ID-insertions for a small internet-fed radio station. The program allows for 20 seconds of just a musical "bed" around the top of each hour. But it is ...
user avatar
  • 2,941
0 votes
1 answer
437 views

See the output of a scheduled task in the terminal

Is it possible to see the outputs of tasks, that are schedule with "at" in real-time? Say, I want to see the values of my loss function as I train my network.
user avatar
  • 103