All Questions

Tagged with
Filter by
Sorted by
Tagged with
0
votes
2answers
447 views

How to schedule a command to execute in every 2 hours?

I want to run a small monitoring jar file every 2 hours in my ubuntu machine. java -jar mymonitoringtool.jar I don't know how to set it up.
1
vote
1answer
82 views

Why will crontab not run my file at a set time, but will run every minute?

So, I have attempted to get crontab to run a node.js file at a set time everyday. I have set it up by doing crontab -e. I have tested that it runs every minute by using the below: * * * * * //path of ...
0
votes
1answer
137 views

gnome-scheduler - 'command not found'

I have Lubuntu and I just switched my default terminal to gnome-terminal (I needed default login shell). I noticed that gnome-scheduler is no longer lauching anything. For example, if I have a task ...
2
votes
1answer
349 views

Change Ubuntu 1604 IO scheduler on AWS?

I am using a VM from AWS, Ubuntu 1604. The tricky thing is that I am not able to change the block device's IO scheduler in this way: root@ip-10-0-96-236:/home/ubuntu# cat /sys/block/xvdb/queue/...
1
vote
2answers
9k views

Running a script via cron at a random time, but a certain number of times per day [closed]

I want to be able to run my script, say, 2 or 3 times per day -- 24 hours -- but at a different time each time. What would you recommend a simple and reliable solution?
2
votes
1answer
420 views

Cron task executes every hour instead of every 3 hours

I have a cron task: $ crontab -l */180 * * * * /my_script.py For some reason, as I can see from /var/log/syslog, it executes every hour instead of every 3 hours. Why is that?
4
votes
2answers
1k views

Run program x minutes after finishing

My question is kinda related to a cron job I think, but I'm not entirely sure. Say I have a script (/home/me/myscript.sh) that does something, that can take an indeterminate amount of time to finish, ...
0
votes
0answers
147 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 ...
19
votes
4answers
16k views

Is there a way to auto turn-on Linux machine?

I know that there are many ways to auto-shutdown, but I'm concerned about auto turn-on. Is there a command or a small piece of software to turn on the system at given time?
4
votes
2answers
5k views

chrt(): “failed to set pid XXX's policy” on one machine, but not others

I have several Linux machines, all of them running the same kernel (Ubuntu 12.04, 3.5.0-45-generic). On one of them, I am unable to use chrt at all. If I attempt to use it on a new process, I get the ...
2
votes
2answers
460 views

How can I automate a task on a certain event?

Playonlinux and WINE are great. Finally I can have my favourite games and the joys of Linux without having dual-boot or filling my disk with Windows crap! But some are quite old, and only run on lower ...