Category : Advanced Programming in the UNIX Environment
System Programming
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Welcome to All Test Answers
System Programming
Download file with the answers [wpdm_package id='2324'] Not a member!
Continue readingExtend example 11 from Chapter VI to the case of three players with the following changes: the winning total should be read from the keyboard before the game ...
Continue readingThe C program below, behaves like a small shell. It processes single commands entered by the user. In particular, the program assembles commands and
Continue readingUsing Unix systems calls, fork(), wait(), read() and write(), write a C program for integerbasic arithmetic to perform the followings: • writes the message ...
Continue readingUsing the standard I/O library functions (fopen(), fseek(), fread(), etc), write a C program to transform a given picture into an up-side-down picture. In particular, your program should
Continue readingWrite a Bash script to compress a list of les with some given extensions. The compression could be done with any Unix compress utilities, such as gzip, bzip2, etc.
Continue readingWrite a C program to obtain a program, called ndFile, to nd a le/directory in a given directory. In particular, your program takes ...
Continue readingLab 10 – Shell Script: Arrays Part I Use array to write a shell script to print out the information about the files and directories in the current directory according to the following sample run. >>>>> ls compute print repeat >>>>> compute practice: shell command and array list ...
Continue readingLab 9 - FIFO Use FIFO to write a client side of program to work with the server side program server.c. This client/server application ...
Continue readingLab 8 – pipe Write a C program with the parent process and a child process communicating with a pipe. The child process will execute the shell command provided by the user via command line arguments. The result of executing this shell command ...
Continue readingLab 7 – ps, kill, and signals Part I Use shell terminal to launch a GUI-based application to be executed in the background. Here are examples to start image viewer gimp on CS server: >>>>> gimp & >>>>> gimp imagefile.ppm & Use command kill -9 pid ...
Continue readingLab 6 – exec() Part I Write a C program called executebash.c. It prints out on the screen EXAM! EXAM! EXAM! and then forks a child to execute a bash script named mybash. This mybash program prints out on the screen STUDY! STUDY! STUDY! Part II Write a ...
Continue readingLab #5 – Process Control Part I Write a C program where child processes are forked in this way: - the original process creates two child processes - each process created from the original process creates two child processes Each process is given a unique ...
Continue readingLab #4 – Process Control and File I/O Part I Read the following programs and write down the expected results. Then run the programs to check the results. Make sure you understand why. To pass the lab test, you may be asked for the ...
Continue readingLab #3 – Shell Commands Type the following into a file called headandtail: Read the help pages for commands grep, cut, head, and tail. When using grep with -n, each line of output is prefixed with a line number within its input file. Check the ...
Continue readingLab #1 – Shell Commands Part I. Understand and practice the following shell commands. Check the man pages if needed. To obtain the mark for this lab, you must correctly answer some randomly selected questions regarding these commands. echo $SHELL echo $PATH uname whoami which pico pwd cat /etc/profile wc -l /etc/passwd ls ls ...
Continue readingLab #2 – System Call I/O Notes: • You can only use system call open/close/read/write/lseek. No library I/O allowed. • You may be given different text files for lab test. Those texts may include line feed, tab, space, integer, string etc. Part I. Write a C ...
Continue readingAssignment 5 – minissh with socket Use socket to write a client/server application to simulate the basic functionality of secure shell. Once the client is connected to the server, it can keep sending shell commands to the server. For each command, the server ...
Continue readingAssignment 4 Rewrite your solution to Assignment 2 with changed requirements on parallel execution. Requirement from previous assignment: • The parent process waits for the child process to terminate before creating the next. Replacement: • The parent process will not wait for the child process ...
Continue readingAssignment 3 Write a bash program called producer and a C program called consumer.c. A text-based data file called storage initially contains an integer number between 5 and 90. The producer checks the number in the storage. If the current number plus 8 ...
Continue reading