On 18. 12. 23, 12:42, Tomas Mudrunka wrote:
Writing ',' to /proc/sysrq-trigger now causes processing to pause for one second. This is useful, because recently accepted patch allows to write multiple keys at once to /proc/sysrq-trigger. But it might be desirable to add slight delay between actions. Eg. between (e)TERM and (i)KILL it makes sense to put slight delay, so processes have chance to run TERM handlers before being KILLed. Now we can send TERM, wait for two seconds and KILL like this: echo _e,,i > /proc/sysrq-trigger
Bah, what's wrong with: echo e > /proc/sysrq-trigger sleep 2 echo i > /proc/sysrq-trigger ? thanks, -- js suse labs