nano /usr/local/bin/killproc.sh
#!/bin/bash
PROCFOLDER="/bin/" #папка процесса
PROCNAME="Thunar"; #имя процесса
kill `ps aux | grep $PROCNAME| tail -n2 | head -n1 |awk {'print $2'}`
$PROCFOLDER$PROCNAME
chmod +x /usr/local/bin/killproc.sh
nano /etc/crontab
*/10 * * * * root /usr/local/bin/killproc.sh
awk 'BEGIN{f=0;}{c=$0;if(f==0){f=1;b=c;a=b};if(c-b>1){if(a==b)print a",";else print a"-"b",";a=c;}b=c;next}END{b=c;if(a==b)print a;else print a"-"b;}' | xargs echo
1-5, 9, 12-14