Odliczanie ukrywania.

This commit is contained in:
Bartek Stalewski 2014-08-19 21:19:05 +02:00
parent 02885c4a7e
commit 5b8018e121
5 changed files with 65 additions and 26 deletions

View file

@ -8,3 +8,17 @@
ocen madrosc %;\
ocen odwage %;\
powstan
/def -i pid_of = \
/quote -S \
/eval /let pid_czego=`"/@ps -r" %%;\
/if (strstr({pid_czego},{*}) != -1) \
/first %%{pid_czego} %%;\
/endif
/def rstart = \
/if ($(/pid_of %{-2})=~NULL) \
/repeat %{1} %{2} %{-2} %;\
/endif
/def rstop = \
/kill $(/pid_of %{*})