16. Process Management and Communication

Gathering Output from a Program

Running Another Program

Replacing the Current Program with a Different One

Reading or Writing to Another Program

Filtering Your Own Output

Preprocessing Input

Reading STDERR from a Program

Controlling Input and Output of Another Program

Controlling the Input, Output, and Error of Another Program

Communicating Between Related Processes

Making a Process Look Like a File with Named Pipes

Sharing Variables in Different Processes

Listing Available Signals

Sending a Signal

Installing a Signal Handler

Temporarily Overriding a Signal Handler

Writing a Signal Handler

Catching Ctrl-C

Avoiding Zombie Processes

Blocking Signals

Timing Out an Operation

Program: sigrand