This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
сигналы [2019/03/21 14:02] val [Определение PID процесса] |
сигналы [2021/10/04 08:35] val [HUP] |
||
---|---|---|---|
Line 14: | Line 14: | ||
# cat /var/run/sshd.pid | # cat /var/run/sshd.pid | ||
</code> | </code> | ||
- | ===== Посылка сигнала ===== | + | ===== Отправка сигнала ===== |
<code> | <code> | ||
# kill -s <SIGNAL> <PID> | # kill -s <SIGNAL> <PID> | ||
# kill -<SIGNAL> <PID> | # kill -<SIGNAL> <PID> | ||
+ | |||
+ | # pkill -<SIGNAL> sshd | ||
# apt install psmisc | # apt install psmisc | ||
+ | |||
# killall -<SIGNAL> sshd | # killall -<SIGNAL> sshd | ||
</code> | </code> | ||
Line 43: | Line 46: | ||
# kill -HUP <PID> | # kill -HUP <PID> | ||
- | $ nohup find / -name index.html > search.result.txt 2>/dev/null & | + | $ nohup /usr/bin/ssh -N -R 200X:localhost:22 userX@gate.isp.un & |
<Ctrl-D> | <Ctrl-D> | ||
</code> | </code> | ||
Line 75: | Line 78: | ||
<code> | <code> | ||
# kill -STOP <PID> | # kill -STOP <PID> | ||
+ | |||
+ | # pkill -STOP -u student bash | ||
</code> | </code> | ||
Line 94: | Line 99: | ||
<code> | <code> | ||
# kill -CONT <PID> | # kill -CONT <PID> | ||
+ | |||
+ | # pkill -STOP -u student bash | ||
# fg %JOBID | # fg %JOBID |