Tag Info

New answers tagged

2

The nice(2) syscall is changing the relative priority (from what it was before that syscall). But setpriority(2) is changing the absolute priority. So my understanding is that nice(x) (with x being a very small number, e.g. between 0 and 9) is the equivalent of atomically doing: // asssume both getpriority & setpriority syscalls are successful int n = ...


0

First, create a MIDI file that plays the desired sound. (You need any sequencer for this.) Then, find out which command you actually need to play it. Use aplaymidi -l to list all ports; call it without -l to play a file: $ aplaymidi -l Port Client name Port name ... 40:0 SC-8820 SC-8820 Part A $ ...


2

The shutdown command has already an embedded scheduler so you don't need a cron job for it to run at the specified time. In Linux as everywhere else, it's better to stick to the KISS principle (Keep It Short and Simple). shutdown -h 22:00 will work fine, no need to run it in the background. Add the command at the end of /etc/rc.local (or ...



Top 50 recent answers are included