UNIX Processes & Redirection

Last time: Using UNIX

Prof. Brian D. Davison

Computer Science & Engineering, Lehigh University

Additional Credits

Announcements

Man is OS-specific; both are installation-specific. Google will usually get you a reference for a different OS or at least a different version of the OS.

C Arrays

Array Initialization

Multidimensional Arrays

Rest of a[][] is initialized to 0.

Character Arrays

Processes

Process information

Managing Processes

 

Managing Processes

Can also give arguments with %jobid to the fg and bg and kill commands.

Killing Processes

Actually, killall will kill all processes with that name (that are owned by the current user).

Redirection

It's useful to point out that every process has three standard file descriptors associated with it --- standard input, standard output, and standard error (0,1,2)

Pipes

Example of Pipes