My name is: Molokanov Yaroslav, I am studying at B01-006(with B01-004 academic group)
It contains folders with programs which are divided on seminars (sem) :
myecho - that is my realisation of bash function echo with param -n;
Make with gcc -Wall myecho.c -o myecho
and launch with ./myecho
Pass arguments that you want to enable on your screen
Also, you can pass key -n, but only on the first position
- pid.c
- myid.c
pid - short function that output process id and parent id;
myid - that is my realisation of bash function id;
Make pid with gcc -Wall pid.c -o pid
and launch with ./pid
Make myid with gcc -Wall myid.c -o myid
and launch with ./myid
There are no arguments to pass
Pass name as an arguments if you want to get an information about process
You can choose not to pass arguments, at this case program will show you information about all processes
- Folder mycat
- Folder tests
- test files
- mycat.h
- mycat.c
- main.c
- Launch
- Folder tests
- Folder mycp
- Folder files
- test files
- mycp.c
- Folder files
Functions mycat and mycp
mycat - that is my realisation of bash function cat without any params;
mycp - that is my realisation of bash function cp with params -i -v -f;
Both programs can be made with make -f Launch
but from their folders
Launch with ./mycat
Launch with ./mycp
Pass names of the files that you want to concatenate;
There are two variants to pass arguments:
1. file1, file2
It will copy file1(if it exists) to file2
2. file1, file2, ..., fileN, directory; where N = 1 to 2147483647;
It will copy files to directory with their local names
- exec.c
- fork.c
- sleepsort.c
Functions exec, myfork, mysort
exec - that is function which fork and call another function;
myfork - that is function which generate childs from their parents N times and print their id and parent id;
parent->child1->child2->...->childN
mysort - that is my realisation of sleepsort;
Make exec with gcc -Wall exec.c -o exec
and launch with ./exec
Make myfork with gcc -Wall fork.c -o myfork
and launch with ./myfork
Make mysort with gcc -Wall sleepsort.c -o mysort
and launch with ./mysort
Pass program name, which you want to execute with this program params
Pass number of processes that you want to generate
Pass array of numbers that you want to sort