From ab8525bc8e52648463fd5a38a8bf8c41f4fe3f7f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20D=C5=82ugo=C5=82=C4=99cki?= Date: Sat, 21 Jun 2014 00:26:50 +0200 Subject: [PATCH] Added more README info about program. --- README | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/README b/README index 5a0b205..f1bb2fa 100644 --- a/README +++ b/README @@ -5,8 +5,8 @@ High School of Information Technology Example usages -------------- -Without bootstrap -================= +Without bootstrap program +========================= In separate terminals enter: $ ./bin/process1 @@ -22,3 +22,19 @@ new line (ENTER). about number of characters in buffer, and sent this value to process3. - Process3 displays information about number of entered characters. +With bootstrap program +====================== + +In terminal, go to the ./bin directory (where compiled programs resides). +Execute: +$ ./bootstrap + +After that there should be shown info about spawning new processess. +You can now pass to the standard input of the first spawned process data, .e.g: +$ echo "qwertyuiop" > /proc/(process 0 pid)/fd/3 + +If process creation was completed without errors, you should see following output: +[process2] Fetched: 11 bytes +[process2] Calculated: 10 characters. Sending... +[process3] Fetched: 4 bytes +[process3] Process2 send: 10 -- 2.30.2