Practice works - Operating Systems (Unix & C)

  • USD
    • RUB
    • USD
    • EUR
i agree with "Terms for Customers"
Sold: 19 last one 23 days ago
Refunds: 0

Uploaded: 04.06.2019
Content: Unix, C.zip 883,57 kB

Seller

TeaJam information about the seller and his items
offlineAsk a question

Seller will give you a gift certificate in the amount of 5 RUB for a positive review of the product purchased.

Product description

The archive contains all the sources, as well as reports on all 4 laboratory.

Tasks:

Laboratory №1

For the successful completion of the work required to perform the following operations by heart:
1) create two three-level subtrees of directories and place four text files in one of the directories, two of which have the same symbol sequence in their name, which is also called a “word”;
2) using ed to edit the text file;
3) display the file on the screen;
4) add text to the beginning, to the middle and to the end of the file;
5) display the file on the screen;
6) to rename the file;
7) to copy the file (the source file and the copy file must be located in different directories);
8) place in any other directory a script that has two input parameters: the name of the directory and the set of characters. The script performs the following actions:
- display on the screen a list of files, "children" to a given directory, which have in their name a given set of characters;
-killing of all other files of the specified directory;
9) create your initialization script that performs the actions:
is getting better;
- "remakes" shell invitations;
-runs the nested script created in (8), specifying the directory and the “word” from (1) as parameters;
- any other actions (according to your desire);
10) exit UNIX, and then log in again to demonstrate the results of the initialization script.



Laboratory №2
It is required to develop a program in the shell language (without using the find command) that searches in a given subtree of the file structure of all files whose names correspond to a given pattern. The result of the program is a list of the names of the desired files on the screen.
Note. The program consists of two scripts. The main script displays the prompt on the keyboard to enter the name-path of the initial directory and the search pattern. Further, he performs the input of this data from the keyboard and displays a list of the required files in the initial search directory (if they are there). Then it calls for each subdirectory a nested script, passing it two input parameters: 1) the relative name of the subdirectory; 2) search pattern.
The nested script searches the specified directory for the required files, and for each subdirectory it calls exactly the same script. (When executing any script, a new instance of the shell is launched, so recursive execution of scripts does not lead to any difficulties.)


Laboratory №3
keyboard input of the contents of a text file whose name is specified on the command line using standard functions and outputting it to the screen using system calls;


Laboratory №4
The father process opens an existing text file, and then creates two child processes, which in turn output the contents of this file in fixed portions of 15 characters each, preceding each output with the number of its process. The output ends on the screen either when it reaches the middle of the file, or after a time interval of 5 seconds has passed.

Feedback

0
No feedback yet.
Seller will give you a gift certificate in the amount of 5 RUB for a positive review of the product purchased..
In order to counter copyright infringement and property rights, we ask you to immediately inform us at support@plati.market the fact of such violations and to provide us with reliable information confirming your copyrights or rights of ownership. Email must contain your contact information (name, phone number, etc.)