C Shell Functionality Demo (fork, exec, waitpid)

197
0
Published 2021-03-13
=====================

This shell runs commands in both the foreground, and background. Depending on the user's input. These commands can include things like redirect STDIN/OUT, typical commands, and piping. If the user wishes to run a command in the background, they can enter '&' after the command. To kill a command, type 'kill' and its pid. To check the jobs, type jobs. This list will include all the currently running jobs, as well as stopped jobs. To stop a foreground job, input ctrl-z. To resume this job (in the background) type "bg x" where x is the number given to this job by the shell. This number will be shown in the job list if you do not know it. The shell will alert you when a background task is completed. This message will also include the exit code
of the command, assuming it does not exit with code 0.
=====================
This shell functions with the use of parent and child threads, the execvp command, signals, and waitpid modes.

=====================

Music: www.bensound.com


All footage owned by SERUS and CARDS Studios, use without written permission is prohibited

All Comments (1)