Difference between revisions of "Shell Commands/Break"

From MorphOS Library

< Shell Commands

(Created page with "'''Break''' - Allows to send a signal (for eg. CTRL+C) to a process PROCESS/A/N, ALL/S, C/S, D/S, E/S, F/S <nowiki> PROCESS - number of the process to send a signal to...")
 
Line 1: Line 1:
 
'''Break''' - Allows to send a signal (for eg. CTRL+C) to a process
 
'''Break''' - Allows to send a signal (for eg. CTRL+C) to a process
  
PROCESS/A/N, ALL/S, C/S, D/S, E/S, F/S
+
PROCESS/N, PORT, ALL/S, C/S, D/S, E/S, F/S
 
  <nowiki>
 
  <nowiki>
 
PROCESS - number of the process to send a signal to                                   
 
PROCESS - number of the process to send a signal to                                   
 +
PORT    - public port name of the process to send a signal to
 
ALL    - sends all signals to the process (see below)
 
ALL    - sends all signals to the process (see below)
 
C      - sends a CTRL+C
 
C      - sends a CTRL+C
Line 18: Line 19:
 
Ctrl+C is the default for sending a Break signal to halt a process.
 
Ctrl+C is the default for sending a Break signal to halt a process.
 
A process that has been aborted this way displays ***Break
 
A process that has been aborted this way displays ***Break
in the Shell window. Ctrl+D halts execution of a script file.
+
in the Shell window. Ctrl+D halts execution of a script file. Ctrl+E closes a process' window. Ctrl+F activates the process' window.

Revision as of 17:45, 6 March 2015

Break - Allows to send a signal (for eg. CTRL+C) to a process

PROCESS/N, PORT, ALL/S, C/S, D/S, E/S, F/S

PROCESS - number of the process to send a signal to                                  
PORT    - public port name of the process to send a signal to
ALL     - sends all signals to the process (see below)
C       - sends a CTRL+C
D       - sends a CTRL+D
E       - sends a CTRL+E
F       - sends a CTRL+F

Break sets the specified attention flags in the PROCESS indicated. Use the Status command to display the current process numbers. By default, only the Ctrl+C flag is set.

Break acts the same as selecting the relevant process by clicking in its window and pressing the appropriate Ctrl+key combinations.

Ctrl+C is the default for sending a Break signal to halt a process. A process that has been aborted this way displays ***Break in the Shell window. Ctrl+D halts execution of a script file. Ctrl+E closes a process' window. Ctrl+F activates the process' window.