Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [schedule]

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

0
votes
1answer
19 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 ...
1
vote
0answers
30 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 ...
1
vote
1answer
92 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 ...
0
votes
1answer
159 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
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 ...
1
vote
1answer
745 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 ...
0
votes
2answers
134 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 ...
1
vote
2answers
38 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 ...
2
votes
1answer
728 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, ...
0
votes
1answer
1k 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 ...
1
vote
1answer
197 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 ...
4
votes
1answer
5k 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
0answers
44 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
70 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.
5
votes
1answer
415 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
430 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
5k 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, ...
1
vote
1answer
8k 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.
0
votes
0answers
85 views

How to schedule monitor for sleep mode?

I have presentation in some day of week in university. Some time I need go to the board for describe my notes. So I left my laptop and go to the board. Some time It's take time to describe what is ...
0
votes
3answers
106 views

How to find out if computer was shut down at a given time?

On Ubuntu (14/16) is there anyway to find out if computer was running at a given time? (e.g. last night at 10 pm if the computer was running or turned off) thanks
1
vote
2answers
1k views

Shutdown after idle (but not if the SAMBA server is in use)

I have found several questions about this, but I can't seem to find one that suits my needs. I'd like my machine (Xubuntu 16.04) to power-off if I'm not using it for 30 minutes. However, I use it to ...
1
vote
1answer
65 views

Scheduling consecutive tasks from the command line

I have been reading about using 'at' to schedule tasks from the command line based on start time here. If I don't know how long tasks will take to complete, what is the best way to schedule ...
3
votes
0answers
84 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?
1
vote
0answers
152 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
76 views

At job doesn't stop?

I'm trying to schedule a job on Ubuntu using at command: /opt$ at now + 1 min warning: commands will be executed using /bin/sh at> echo "test" > /opt/t.txt at> <EOT> However, the ...
12
votes
3answers
16k 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 ...
0
votes
1answer
1k views

How to: automatically restart Ubuntu server every 6 months as a scheduled task?

I have a mail server in my environment and I never touched it (someone configured it for me at first) since a few days ago when everything stopped working and I was unable to receive any emails. The ...
2
votes
1answer
997 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 ...
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 ...
6
votes
1answer
5k 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 ...
1
vote
1answer
135 views

How can I use the in-built function alert in Gnome Schedule?

I want to access the alert function in Gnome Schedule. I can run alert from my default Bash command-line but receive the following error in Gnome Schedule: /tmp/tmpxi4X16: line 1: alert: command not ...
2
votes
2answers
551 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 ...
3
votes
1answer
854 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.
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 ...
2
votes
2answers
148 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?
11
votes
2answers
21k 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, ...
2
votes
2answers
198 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 ...
1
vote
2answers
5k views

Schedule tomcat7 restart on Ubuntu 14.04.3 LTS

I have an issue with Tomcat 7 on my Ubuntu machine. I'm still a rookie in this, but it seems that restarting the tomcat7 service fixes the issue. I would like to make a scheduled task on the machine ...
3
votes
1answer
502 views

Scheduling power off and on of my headless server

I want to schedule power off at 23:30 and power on at 6:30 everyday. Here are some problems: If I run such command sudo rtcwake -m off -l -t $(date +%s -d 'tomorrow 06:30') it switches off the pc ...
8
votes
3answers
856 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 ...
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-...
11
votes
2answers
927 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-...
0
votes
2answers
409 views

CRON: Starting new cycle while the last one is still running?

Example, there is 1 .py script set with CRON to execute every 5 minutes. What if that script takes more than 5 mins to finish? Would that cause the problem? Would .py program broke? Is it possible to ...
7
votes
1answer
271 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 ...
0
votes
2answers
528 views

Schedule a Restart for Google Chrome

I am currently working on a project using Ubuntu 14.04 at an airport that allows passengers to view a map of the United States. The map shows a live feed of the flights (both incoming and outgoing). ...
1
vote
0answers
47 views

Schedule command during shutdown? [duplicate]

How do we execute a command such as it executes everytime one logs out or shutdowns or restarts the machine ? To be more specific, I want the autotrash to be executed at logout, or shutdown or ...
2
votes
2answers
1k views

can you schedule the start and stop time of copying in wget?

Hi there I'm new here in the forum and very new using tools for Linux. Actually I'm tasked to learn about wget. I already know a few though I'm trying to find out if there is a syntax to use to ...
1
vote
2answers
3k views

How to Snapshot and Recover complete Linux system? [closed]

I have a laptop with Ubuntu installed on it and some other private software and files. I want to make a complete image of the current state of my system and than make backups on daily basis of my work....
2
votes
0answers
133 views

CPU Scheduling incredibly slow with large difference between total execution time and actual CPU time - Ubuntu Full-Disk Encryption enabled

Admittedly, I am running on a build that is no younger than five years old at this point and the system is not going to be incredibly fast. However, at the same time, the run-times I am observing are ...
2
votes
1answer
388 views

Crontab on Ubuntu Phone - Scheduling synchronisations

On my Aquaris E4.5 I have successfully configured syncevolution to synchronise my CardDav Contacts and CalDav Calender entries. Now I would like to schedule synchronisations. However, since /var/...