Named processes and infinite repeats.. For example:
/ps -name mud_timer +11 -1 say Hello world.
/kill -name mud_timer
/pstickle -name mud_timer
Logged In: NO
Use this:
/def -i pid_of = \ /quote -S /eval /let pid_what=`"/@ps -r" %%; \ /if (strstr(pid_what, {*}) != -1) \ /first %%{pid_what} %%; \ /endif
/def rstop = /kill $(/pid_of %{*})
And then... /rstop Hello world
Infinite repeats are in b8, /repeat -5 i say Hello world.
R.
Log in to post a comment.
Logged In: NO
Use this:
/def -i pid_of = \ /quote -S /eval /let pid_what=`"/@ps -r" %%; \ /if (strstr(pid_what, {*}) != -1) \ /first %%{pid_what} %%; \ /endif
/def rstop = /kill $(/pid_of %{*})
And then... /rstop Hello world
Infinite repeats are in b8, /repeat -5 i say Hello world.
R.