George Mason University
DEPARTMENT OF COMPUTER SCIENCE

CS471 Operating Systems Spring 2001

Experiments

Introduction | System Specifications | Conclusions | Program Files | Project Action Reports

Testing the Parser:

The following experiments show the proper functionality of the parser.  This is done by showing that input and output redirection work, along with piping.  We use some commands, such as send and receive and sort to show that these functions are working.

We begin by issuing the date command and redirecting the output to date.txt.

Next, we show that the date was saved into the file by issuing the ‘cat’ command.

Next, we login with another login name, and then issue the ‘cat’ command on the date.txt file, the output is redirected into the pipe, and the result is passed to the ‘send’ command, which sends the message to the newly logged in user.

This is confirmed by issuing the ‘receive’ command.  The message is displayed with the contents of the file from user ‘john.’

We next used sort to test the parser.  A file called abc was created with random letters in it.  The file is then sorted using the -a command and -d command.  Lastly, the parser is shown to work by opening the file sorting it and then outputing it to a new file.  It is output to show it working.

<<-Previous                                                                                                               Next ->>

Introduction | System Specifications | Conclusions | Program Files | Project Action Reports