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
85
votes
4answers
108k 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?
80
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 ...
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?
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 ...
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?
18
votes
2answers
16k views

Scheduled download by transmission during nightly hours? (downloading just at a specified period of a day)

I want to limit transmission to work at 02:00 AM untill 08:00. How?
17
votes
2answers
11k views

Scheduling a reboot on a remotely located Ubuntu server

I work on a ubuntu server located in a place where I don't usually go. I use ssh over openvpn to access it. The machine has multiple wired interfaces, many static routes and multiple default gateways ...
16
votes
2answers
10k 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 ...
13
votes
3answers
9k views

How do I schedule waking up from hibernation?

Is it possible to wake up Ubuntu from hibernation at a predefined time? It should not be WOL, but rather Ubuntu waking itself up. For example, it should do what the app WakeupOnStandBy does on MS ...
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 ...
11
votes
2answers
26k views

Running .sh every 5 minutes

I have a .sh script that downloads a photo from Japanese satellite's server and sets it as a background picture. I've put it into startup list, but how do I run it every, like, 5 minutes, ...
11
votes
2answers
1k views

Is there software to periodically start and close an application?

Exemplary use case: I would like to start Telegram Desktop periodically every 3 hours for 15 minutes, to check for newly incoming messages. After 15 minutes, the application should close again and re-...
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 ...
10
votes
3answers
3k views

How do I periodically turn off showing hidden files?

So, in order to hide some files and folders to unskilled eyes, I modified their names putting a dot to the start of the name. It works, and files are hidden. Nosy people that are not skilled will not ...
10
votes
3answers
29k views

How do I configure Ubuntu to reboot every day at a given time?

Using the terminal or a bash file, how can I configure Ubuntu to reboot every day at (say for instance) 3 AM? In other words, I want to schedule an automatic reboot through the terminal. I haven't ...
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?
9
votes
1answer
6k views

Manually run an Anacron Job

I have performed a minimal installation of my system. I want to use this system as PLEX media server. I have configured LXDE because it is a light GUI. I am configuring my system to take automatic ...
8
votes
3answers
1k views

How to lock screen 30 minutes after unlock [duplicate]

I would like my children to only use the computer for 30 minutes, at which time I would like the screen to be locked. At that point, if I choose to unlock the screen again, I would like the screen to ...
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 ...
7
votes
1answer
279 views

How to schedule emails with varying content?

I recently moved to Ubuntu 14.04 and encounter my first problems. I would like to create a schedule for automatic email transmission. I'm running some queries every morning via cron which are saved as ...
6
votes
1answer
203 views

Is there a public calendar for key Ubuntu events?

I've been looking at the schedule for Ubuntu Developer Week (11th to 15th of July), and started entering the schedule into my Google calendar (XML, iCal, HTML). At this point, I thought to myself... ...
6
votes
0answers
401 views

Which tasks in “Scheduled Tasks” (gnome-schedule) use anacron versus cron?

I am trying to run a command once a day, but my machine is not always on. anacron says it's meant for such purposes, but I prefer to use the Gnome Scheduled Tasks GUI program. If I schedule a task to ...
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:...
5
votes
3answers
4k views

How do I set up an mp3 alarm clock?

I want to switch from Windows XP to Ubuntu and there is one thing that I'm heavily using in XP—an MP3 alarm clock. In the evening I turn the PC to hibernated mode. In the morning it wakes up (...
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-...
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)] * * * * * ...
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 ...
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/...
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, ...
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 ...
4
votes
3answers
4k views

How can I make a command run once the next time I log in?

How can I schedule a command to run the next time I log in? I don't want it to run every time, just once.
4
votes
1answer
2k views

How to Schedule a Ruby Script

I have a ruby script I'd like to execute every 5 minutes or so. I have seen mention of cron tasks, but not in the context of executing Ruby. I would like to know the steps necessary to execute the ...
4
votes
1answer
3k views

Lock Terminal and Suspend from Terminal

I am trying to lock and suspend from the terminal. I tried: pmi action suspend | at now + 1 min And then typed exit But both that and vlock kill the running command. Is there a way to lock the ...
3
votes
1answer
430 views

Understanding the at-command to schedule another command

I use cron to schedule things in Linux, but recently I discovered the "at" command. sudo apt-get install at I don't understand the scope from which this command operates: How would you schedule a ...
3
votes
1answer
1k 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.
3
votes
3answers
496 views

How to run a command within a time duration per min/sec?

I want to run a command/shell script say script.sh from 1AM to 2AM per minute. After observing that crontab can't work it out 'per sec' I had to go with 'per min'. Basically, My server.sh file takes ...
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, ...
3
votes
2answers
80 views

Is it possible to list the actual commands that have been scheduled with `at`?

I'd like to be able to see exactly what has been scheduled with at. atq will list the job id, time to run, and user to run as, but not the actual task that will be run. Thanks! Edit I should add ...
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?...
3
votes
1answer
276 views

How to use clock to run program on time?

For example: I want to set when 6:00 am it plays 1.mp3 (if 2.mp3 is playing then close 2.mp3). When 18:00 it plays 2.mp3 to replace 1.mp3 (replace means close 1.mp3 and play 2.mp3). Everyday was ...
3
votes
0answers
90 views

only download updates after midnight and before 5am?

I am running Ubuntu 14.04 LTS. Is there a way to set the system to only download updates after midnight and before 5am?
2
votes
2answers
349 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 ...
2
votes
1answer
702 views

Does duplicity detect when a Backup Is Already In-Progress?

Any time you schedule a recurring backup, it is always possible for a previously-initiated-backup to run so long that the next scheduled backup gets initiated before the previous backup completes. ...
2
votes
2answers
162 views

How many times will a cron job run when given asterisk (*) on all positions?

If we define a cron job with * * * * * /some/task/to/perform, how many times will the job be executed in 60 seconds?
2
votes
2answers
283 views

crontab not working as expected

I'm using ubuntu 12.04 and I want to execute a script every 5 hours . I setup cron with crontab -e and putted * */5 * * * sh /home/cron_script.sh The script is executed every minute. Thanks.
2
votes
3answers
4k views

Need to skip lost+found when using find

I am new to Ubuntu and I do not have alot of experience with Linux/Unix, so please bear with me while I try to get through this. I have a camera system that records footage and takes screen shots and ...
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, ...
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.