These are programs that I am working on
other than the exercises in the book.
Program to decode ROT-13 text
I had originally intended to build a program that could
decode text behind symbols. However, I learned that such a program was
not possible for several reasons. Instead Bart V. Ingen Scheanu
suggested a similar project:
Write a program that can decode this
(ROT-13 encoded) text: Jryy qbar, naq n tbbq qnl gb lbh.
I am currently designing a suitable solution for this and will publish
it once I have completed the project. After I develop a working console
version, I am going to implement a GUI front-end for it, for the Gnome
Desktop environment.
A simple shell
In the book Operating Systems Design & Implementation
(3rd edition) a project is to write a simple shell. In the text an
example is given of a stripped down shell written in C language. This
is as follows:
#define TRUE 1
while(TRUE)
{
type_prompt();
read_command(command, parameters);
if(fork() != 0)
{
/* parent code */
waitpid(-1, &status,
0);
}
else
{
/*child code */
execve(command, parameters, 0);
}
}
I am trying to implement this exercise in C++:
Write a shell that is similar to
above, but contains enough code that it actually works so you can test
it. You might also add some features such as redirection of input and
output, pipes and background jobs.