сигналы

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
сигналы [2019/03/21 14:04]
val [Посылка сигнала]
сигналы [2021/10/04 09:01] (current)
val [HUP]
Line 19: Line 19:
  
 # 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 
 +userX@gate.isp.un'​s password: 
 + 
 +<Ctrl-Z> 
 + 
 +$ bg 
 <​Ctrl-D>​ <​Ctrl-D>​
 +</​code>​
 +
 +===== TSTP <​Ctrl-Z>​ =====
 +
 +  * [[https://​ru.wikipedia.org/​wiki/​SIGTSTP]]
 +
 +<​code>​
 +# kill -TSTP <PID>
 +
 +# jobs
 +
 +# bg ...
 +
 +# fg ...
 </​code>​ </​code>​
  
Line 54: Line 77:
 # kill -INT <PID> # kill -INT <PID>
 </​code>​ </​code>​
- 
  
 ===== KILL ===== ===== KILL =====
Line 75: Line 97:
 <​code>​ <​code>​
 # kill -STOP <PID> # kill -STOP <PID>
-</​code>​ 
  
-===== TSTP <​Ctrl-Z>​ ===== +pkill -STOP -u student bash
- +
-  * [[https://​ru.wikipedia.org/​wiki/​SIGTSTP]] +
- +
-<​code>​ +
-kill -TSTP <​PID>​ +
- +
-# jobs +
- +
-# bg ... +
- +
-# fg ...+
 </​code>​ </​code>​
  
Line 94: Line 104:
 <​code>​ <​code>​
 # kill -CONT <PID> # kill -CONT <PID>
 +
 +# pkill -CONT -u student bash
  
 # fg %JOBID # fg %JOBID
сигналы.1553166276.txt.gz · Last modified: 2019/03/21 14:04 by val