In Linux, it's a very common practice to redirect data streams to ÖZEL processes and send some data
to files, for example.
And he on this diagram, you'll see some sample interaction between different processors.
In this process, you see a study out and a study area and we redirect to a study out.
Datastream to SDD in up Oslo process.
This process has also, of course, a study out.
And as to the error data streams and in this example, those are data streams sent data to specific
file.
And you could use even the same file for both data streams in such case as to the out.
And as to the error, we'll write data to the same file.
Next, you'll see that this is the area.
Data stream redirects data to a study of an Oslo process.
And this process sounds as to the error results to a NAS or a file.
Also, you'll see that a study out of this process does not send data to Oslo process or to us or file.
And that means that if this process is running inside of specific, biased or CHL, then you'll see
a result of this.
As to the out data stream inside of the terminal where you are running best or S.H. process.
Now let me jump into the terminal and explain you all of that unpracticed.
Let me clear terminal here and I'll use first cart comment.
Got comment allows you to read the contents of a specific file or read contents from SDD in.
And that's actually throws you did that.
I am showing you in discourse that allows you to read data from SDD in.
I mean, you are able to send data to the end of this process and this process will accept this data
and process it.
All right.
Let's go back to terminal.
And first, let's have a look at the help for this come.
Let me scroll up a bit.
And here you'll see that this comment actually conquered the nades file or files and sends data to standout
output.
With file, because you see that the file is actually optional argument.
This OHDELA Day opportunity will read data from standout input.
Let's try it.
Let's try this, what do we do without any argument?
Simply cut breast cancer and no, I see that this process is running.
If I enter and also tap and if we believe have a look at protesters around and instead of this container
dogor exactly this idea, let me copy this container idea based here.
And I could simply type here.
P.
S.
And this will start to be as broad as inside of the run container.
Let's press enter.
Actually, I need to add to your option because Sandesh e I want to see all processes and yes.
Now I see here got proses.
The discount click on it.
And here this is brought this idea great here.
While this process is running, we are able to send some data to SDD in off this process with type.
Hello.
Got like soul enter and I see result.
And that means that Hillo Cut was sent as a study in datastream to got process and it has sent it back
via a study out datastream.
And that's why we have seen this line in the terminal.
Notice that if I press simply anthurium, I get actually do empty lines.
And that means that this answer is also written back by Estin, the out data stream of coprolites.
Let's type something.
Singles.
Hi.
Hey.
Good morning.
And so on that scale, you're able to interact with SDD in data stream of specific process.
All right.
Let me terminate this process.
Control, see?
Now, it was terminated.
And if I least protest us now, the S I don't see God brought us here on the list.
It was stopped.
But that was example of the process that has ESTA in open and you could send data via this as to the
data stream and it sends the same data back via a study out datastream.
All right, if I use the same command.
But with argument, let's have a look at the contents of this folder.
And here I still see two different files as to the error, the takes.
And as to the LDA takes steam.
I could actually read them using got comment, got the name of the file.
A study out of the extreme.
I'll see actually contents of as LDA takes the file.
But this file is empty.
Let me read the contents of a study error file.
And there was this text to present.
And this text was produced by a study out Datastream of God Brought US.
And if you'll supply file name as argument for God comment, you are not able to send any additional
text via a study in datastream to court process.
And the reason for that is that this file is actually streamed to the in of God process.
That's how it works under the hood.
But a study out is right, the right of girls to parent process and burn notice in this case is best
show.
All right, now, let me demonstrate to that.
Avery datastream a study in a study out and study error has numeric ideas.
Let me enter full increment.
Cut.
Zero.
Less than sine and SDD error.
The extreme enter.
And I get same result as before.
And actually, in this comment, I have told that I want to send as to the Arabic text defile via standout
in to Qatar process.
And actually this combination zero allows them tells that zero is ideal of SDD in datastream.
One is idea of a study.
Our data stream and two is idea of a study.
Our data stream.
Let me show you that.
Let me clear terminal.
And let me remove actually those two files are M.
S DDA error that the extreme and our M is to the outdoor deal.
Now, those files are absent.
Right.
Let me clear terminal.
And here again, I'll use Alaska amend.
It will start this process.
And I want as to the old data stream of this protest to be sent to file.
And as to the air date approaches, I'll send to annuls or file for that.
I could use a numeric I.D. of data streams.
Zero work app is I.D. of SDD.
In one is I.D. of a study out and using SISA index one greater than sign without space, please.
I could send as to the our data stream to specific file.
Or if you want to Oslo process, I'll send you the file.
A study out dodig steam.
Next comes SpaceX and he'll we'll be to greater than site do is iodine up as to the air datastream and
I'll send it to Amar's or file SDD our dot x2 like so.
With this comment, I will redirect bulls as to the out.
And as to the air data streams of L'Esperance, that's press enter.
And of course, I see nothing here in the terminal because as the day out was redirected to the file
and here I should see two newly created files as to the outtakes.
And as to the error, the digs deep.
And of course, you could guess that.
As to the Arab street is empty.
And as to the outtakes 60 complains list of folders Dorce folders.
Let's have a look at as to the outtakes team God, SDD out of the extreme.
Here are those folders and let's have a look at the esta dia error, Detective.
It is empty.
All right.
But if I repeat same comment about Wills and Kate D, I process.
Let me do that.
I don't see that as Dedede error.
The text file now contains this error that was produced by this process and sent via ethe as to D error
datastream.
And please note again that this too is numeric I.D. of SDD error datastream.
One is idea of SDD out datastream.
Also, please notice that was greater than sine we create those files.
This one and this one.
Each time from scratch we rewrite previous file.
If you want to append data to the file, you could use two arrows instead of one.
Let me show you that here.
Real beom rather than sine like so.
And here will be one more sign as well.
Press enter and less with contents of our file.
Once again.
And now we see that this text was appended to this text.
Also, let's repeat the same comment about the let's for example, instead of mce d i r let's use got
command and let's send also argument to this command and this argument will be name of the file that
is absent.
Now in this folder where we are on in cut command and in such case when file is absent, God will produce
an error.
And let's see which area it will produce.
Let's hear type for example, absent file the D like so and this syntax will remain in place.
Let's press enter and let's with contents of SDD out the text file.
And I see that this new line appeared here in this text file.
Absent father takes D.
No such file or directory and that is a result of this command.
This file Epson file of 60 is absent.
Here it is.
You don't see this file here in this folder.
This white card command has produced this error and it has sent this error by as to the error datastream
to this file and using two arrows.
We actually have append that contents to existing file.
That's why those lines still present here in this file.
And this line was appended like so.
All right, guys, this code you are able to read direct data streams from a specific brought us.
And you could send out those dreams, eyes or files, as we have tried in this lecture or to Oslo processes.
And if you want to send the data from one process to ad nauseum, it is called biting.
And let me demonstrate how to perform Bipin in the next lecture.
I'll see you down.
Bye.