The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
22
votes
4answers
37k 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?
1
vote
1answer
72 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?
2
votes
2answers
4k 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
1answer
25 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 ...
0
votes
1answer
23 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?
0
votes
0answers
37 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, ...
4
votes
2answers
28k views

How do I setup two cron jobs to run every night at 3:00 and 3:10?

I have an ubuntu home server running virtual box. I have virtual server running on that box that I am having problems with. For now I don't have time to troubleshoot the actual issue but I have ...
81
votes
4answers
254k 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 ...
87
votes
4answers
109k 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?
5
votes
2answers
1k 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
0answers
52 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 ...
4
votes
1answer
8k 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 ...
1
vote
1answer
65 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 ...
1
vote
1answer
245 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 ...
4
votes
3answers
129 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, ...
11
votes
2answers
23k 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 ...
13
votes
3answers
19k views

I can't install gnome schedule on Ubuntu 16.04

I would like to install gnome-schedule in my recent Ubuntu 16.04 but I can't find the how. It is not in ubuntu software and if I type sudo apt-get install gnome-schedule, I get it's not found. I would ...
28
votes
7answers
60k 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 ...
4
votes
3answers
6k views

How to queue commands

Suppose I have jobs to run one after another, how can I queue them up and if possible still retain the output/log each script produces. (eg. I can use at to schedule tasks but I dont get the log/...
0
votes
1answer
23 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 ...
2
votes
1answer
1k 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
1answer
972 views

What is the format of /proc/[pid]/sched file? What is option avg_per_cpu in it?

I'm wondering if there is some documentation for /proc/[pid]/sched file in linux? this is not present in man proc. I need to understand what are the different field in there and what is avg_per_cpu ...
1
vote
1answer
146 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 ...
3
votes
1answer
6k views

How to write a script to send messages over telegram-cli?

I don't know how to explain myself but I need to send scheduled messages via telegram so I downloaded the telegram client to send messages via terminal. I wrote a bash script that opens the client, ...
0
votes
1answer
322 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) ...
0
votes
1answer
2k 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 ...
0
votes
0answers
26 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 ...
7
votes
3answers
17k views

How to run a bash script after 20 sec on Login?

I want to run a bash script like: #!/bin/bash echo 'cpu limit bomi player at 40%' cpulimit -v -e bomi -l 40 Just 20 seconds after Login into my user. Can you please help me to do that? I ...
1
vote
1answer
268 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 ...
2
votes
2answers
709 views

How to schedule app to lauch including it's GUI

I have a calc spreadsheet that I'm trying to automate. When open, it collects data, calculates, saves itself and exits. So I created a script to call this. soffice --calc --norestore Updater.ods ...
2
votes
1answer
1k 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 ...
1
vote
2answers
41 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 ...
0
votes
2answers
163 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 ...
30
votes
2answers
8k 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
1answer
263 views

What is this python script doing?

What I need is an executable file (so that I can double click and open) of Deluge Bit torrent client. I found this, deluge.py is my usr/bin folder. #!/usr/bin/python # EASY-INSTALL-ENTRY-SCRIPT: '...
18
votes
2answers
16k views
2
votes
1answer
1k views

Is there a way to restore a Linux system to a previous state Using BTRFS? as in Windows restore points

Windows restore points... How to have the same functionality in Ubuntu ? With existing tools like Deja-Dup I have tried to set up snapshots and got trouble following the instructions. Is there a ...
0
votes
1answer
38 views

Starting an application as a scheduled task does not work

I have a seedbox under an Ubuntu desktop server. I can run rtorrent correctly but if I restart the server I need to relaunch rtorrent with this command: sudo -i screen -fa -d -m rtorrent I would ...
2
votes
1answer
4k views

Why does Ubuntu Server run both cron and atd?

From the man pages it appears both do basically the same thing, why have both running on the system at the same time? From the wording in the man pages it looks like cron will repeatedly run programs ...
1
vote
0answers
153 views

How do I schedule the recording of a live Youtube stream to watch later?

I wanted to record live church streams that I cannot watch live when they take place and that are not originally archived by the church themselves. What software can I use to accomplish this on a ...
1
vote
0answers
54 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 ...
0
votes
1answer
120 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.
1
vote
3answers
843 views

Does gnome-schedule run things on startup if the run time is missed?

I have a script that I would like to run daily. I set it up in gnome-schedule to run every day at 00:00, and I'm wondering whether it will run on startup if my computer was not turned on at 00:00. If ...
3
votes
3answers
2k views

How do I make scheduled snapshots of an authenticated webpage?

How can I, as an Ubuntu beginner, get a daily snapshot of a webpage? The page requires a log in and then displays a bunch of numbers that I'm interested in. Can I write a script to take care of this?...
10
votes
2answers
13k views

run script every last thursday of the month [duplicate]

How to make a script run at e.g. 16:00 every last thursday of the month using gnome-schedule or cron?
5
votes
3answers
2k 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-...
2
votes
2answers
353 views

Is there a way to automatically turn off the computer at a certain time of the day?

For a long a long time its been a problem for me (the human) to go to sleep early. A part of the problem is definitely that I often been to long by the computer at night I mess up my day rhythm and my ...
5
votes
1answer
470 views

Can't use the “at” utility

I use Ubuntu 16.04 and try to execute directly on Bash: sudo cat << EOF | at 'now + 1 minute' echo "hello" EOF I get: warning: commands will be executed using /bin/sh job 6 at Wed Dec 28 03:...
0
votes
2answers
679 views

How to run bash command with arguments at scheduled time

I have a bash file which runs a process on a series of newly downloaded files, every day, the total run time for all the processing is several hours. I want to run a particular bash command 24 hours ...
2
votes
1answer
10k views

How to setup cron.daily? [duplicate]

I put my shell script inside /etc/cron.daily I was hoping everything that in that folder would be run daily but my script is not being ran.