-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
 [](README.ru.md) | ||
# `pipex` | ||
|
||
The purpose of this project is the discovery in detail UNIX mechanism - `pipe`. | ||
You can read task: [`pipex.subject.pdf`](subject/pipex.subject.pdf) | ||
|
||
|
||
### Discription of mandatory part | ||
The program `pipex` should repeat the behaviour of the next shell command | ||
```bash | ||
$> < file1 cmd1 | cmd2 > file2 | ||
``` | ||
and looks like this: | ||
```bash | ||
$> ./pipex file1 cmd1 cmd2 file2 | ||
``` | ||
All errors like: wrong commands, permission to files and etc, need be handle. | ||
### Discription of bonus part | ||
Program need handle multiple pipes | ||
```bash | ||
$> < file1 cmd1 | cmd2 | cmd3 | ... | cmdn > file2 | ||
|
||
$> ./pipex file1 cmd1 cmd2 cmd3 ... cmdn file2 | ||
``` | ||
Support `<<` and `>>`, when instead of `file1` is`here_doc`. | ||
```bash | ||
$> cmd1 << LIMITER | cmd2 >> file2 | ||
$> ./pipex here_doc LIMITER cmd1 cmd2 file2 | ||
``` | ||
### Evaluated by moulinette | ||
 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
[](README.md)  | ||
# `pipex` | ||
|
||
Цель данного проекта детальное рассмотрение UNIX механизма `pipe`. | ||
Задание можно прочитать здесь: [`pipex.subject.pdf`](subject/pipex.subject.pdf) | ||
|
||
### Описание основной части | ||
Программа `pipex` должна повторять поведение следующей команды оболочки | ||
```bash | ||
$> < file1 cmd1 | cmd2 > file2 | ||
``` | ||
и выглядеть следующим образом: | ||
```bash | ||
$> ./pipex file1 cmd1 cmd2 file2 | ||
``` | ||
Необходимо обрабатывать все ошибки, такие как: неправильные команды, отсутствие необходимых прав у файлов и т.д. | ||
### Описание бонусной части | ||
Программа должна обрабатывать несколько пайпов. | ||
```bash | ||
$> < file1 cmd1 | cmd2 | cmd3 | ... | cmdn > file2 | ||
|
||
$> ./pipex file1 cmd1 cmd2 cmd3 ... cmdn file2 | ||
``` | ||
Поддерживать `<<` и `>>`, когда вместо `file1` передается`here_doc`. | ||
```bash | ||
$> cmd1 << LIMITER | cmd2 >> file2 | ||
$> ./pipex here_doc LIMITER cmd1 cmd2 file2 | ||
``` | ||
### Оценка от moulinette | ||
 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.