1
00:00:04,150 --> 00:00:11,250
In Linux, it's a very common practice to redirect data streams to ÖZEL processes and send some data

2
00:00:11,250 --> 00:00:12,480
to files, for example.

3
00:00:12,900 --> 00:00:17,520
And he on this diagram, you'll see some sample interaction between different processors.

4
00:00:18,520 --> 00:00:24,020
In this process, you see a study out and a study area and we redirect to a study out.

5
00:00:24,100 --> 00:00:27,290
Datastream to SDD in up Oslo process.

6
00:00:28,190 --> 00:00:30,550
This process has also, of course, a study out.

7
00:00:30,620 --> 00:00:37,490
And as to the error data streams and in this example, those are data streams sent data to specific

8
00:00:37,490 --> 00:00:37,970
file.

9
00:00:38,420 --> 00:00:43,880
And you could use even the same file for both data streams in such case as to the out.

10
00:00:43,970 --> 00:00:46,790
And as to the error, we'll write data to the same file.

11
00:00:47,780 --> 00:00:50,330
Next, you'll see that this is the area.

12
00:00:50,420 --> 00:00:54,950
Data stream redirects data to a study of an Oslo process.

13
00:00:55,370 --> 00:00:59,630
And this process sounds as to the error results to a NAS or a file.

14
00:01:00,530 --> 00:01:06,890
Also, you'll see that a study out of this process does not send data to Oslo process or to us or file.

15
00:01:07,160 --> 00:01:13,730
And that means that if this process is running inside of specific, biased or CHL, then you'll see

16
00:01:13,750 --> 00:01:14,750
a result of this.

17
00:01:14,840 --> 00:01:20,330
As to the out data stream inside of the terminal where you are running best or S.H. process.

18
00:01:21,610 --> 00:01:25,380
Now let me jump into the terminal and explain you all of that unpracticed.

19
00:01:25,970 --> 00:01:30,470
Let me clear terminal here and I'll use first cart comment.

20
00:01:30,930 --> 00:01:37,370
Got comment allows you to read the contents of a specific file or read contents from SDD in.

21
00:01:38,000 --> 00:01:39,680
And that's actually throws you did that.

22
00:01:39,740 --> 00:01:44,450
I am showing you in discourse that allows you to read data from SDD in.

23
00:01:44,870 --> 00:01:51,380
I mean, you are able to send data to the end of this process and this process will accept this data

24
00:01:51,440 --> 00:01:52,160
and process it.

25
00:01:52,640 --> 00:01:52,970
All right.

26
00:01:53,360 --> 00:01:54,390
Let's go back to terminal.

27
00:01:54,740 --> 00:01:57,930
And first, let's have a look at the help for this come.

28
00:01:58,580 --> 00:02:00,020
Let me scroll up a bit.

29
00:02:00,500 --> 00:02:09,350
And here you'll see that this comment actually conquered the nades file or files and sends data to standout

30
00:02:09,440 --> 00:02:09,949
output.

31
00:02:11,000 --> 00:02:14,990
With file, because you see that the file is actually optional argument.

32
00:02:15,650 --> 00:02:20,150
This OHDELA Day opportunity will read data from standout input.

33
00:02:21,210 --> 00:02:21,870
Let's try it.

34
00:02:22,230 --> 00:02:24,750
Let's try this, what do we do without any argument?

35
00:02:24,870 --> 00:02:29,790
Simply cut breast cancer and no, I see that this process is running.

36
00:02:31,490 --> 00:02:36,800
If I enter and also tap and if we believe have a look at protesters around and instead of this container

37
00:02:37,250 --> 00:02:42,500
dogor exactly this idea, let me copy this container idea based here.

38
00:02:42,800 --> 00:02:44,690
And I could simply type here.

39
00:02:44,740 --> 00:02:44,910
P.

40
00:02:45,020 --> 00:02:45,310
S.

41
00:02:45,680 --> 00:02:48,870
And this will start to be as broad as inside of the run container.

42
00:02:49,430 --> 00:02:50,270
Let's press enter.

43
00:02:50,660 --> 00:02:56,060
Actually, I need to add to your option because Sandesh e I want to see all processes and yes.

44
00:02:56,090 --> 00:02:58,130
Now I see here got proses.

45
00:02:58,220 --> 00:02:59,430
The discount click on it.

46
00:02:59,720 --> 00:03:02,800
And here this is brought this idea great here.

47
00:03:03,050 --> 00:03:11,260
While this process is running, we are able to send some data to SDD in off this process with type.

48
00:03:11,830 --> 00:03:12,140
Hello.

49
00:03:12,260 --> 00:03:15,950
Got like soul enter and I see result.

50
00:03:16,760 --> 00:03:26,360
And that means that Hillo Cut was sent as a study in datastream to got process and it has sent it back

51
00:03:26,660 --> 00:03:28,840
via a study out datastream.

52
00:03:29,480 --> 00:03:32,360
And that's why we have seen this line in the terminal.

53
00:03:33,870 --> 00:03:38,810
Notice that if I press simply anthurium, I get actually do empty lines.

54
00:03:39,120 --> 00:03:45,030
And that means that this answer is also written back by Estin, the out data stream of coprolites.

55
00:03:45,840 --> 00:03:46,680
Let's type something.

56
00:03:46,680 --> 00:03:47,100
Singles.

57
00:03:47,340 --> 00:03:47,730
Hi.

58
00:03:48,390 --> 00:03:48,780
Hey.

59
00:03:49,680 --> 00:03:50,310
Good morning.

60
00:03:51,410 --> 00:03:57,950
And so on that scale, you're able to interact with SDD in data stream of specific process.

61
00:03:58,640 --> 00:03:59,000
All right.

62
00:03:59,270 --> 00:04:00,530
Let me terminate this process.

63
00:04:00,740 --> 00:04:01,550
Control, see?

64
00:04:01,820 --> 00:04:02,940
Now, it was terminated.

65
00:04:03,350 --> 00:04:09,410
And if I least protest us now, the S I don't see God brought us here on the list.

66
00:04:09,590 --> 00:04:10,370
It was stopped.

67
00:04:11,460 --> 00:04:18,660
But that was example of the process that has ESTA in open and you could send data via this as to the

68
00:04:19,019 --> 00:04:24,960
data stream and it sends the same data back via a study out datastream.

69
00:04:26,240 --> 00:04:28,670
All right, if I use the same command.

70
00:04:28,880 --> 00:04:33,200
But with argument, let's have a look at the contents of this folder.

71
00:04:33,410 --> 00:04:37,020
And here I still see two different files as to the error, the takes.

72
00:04:37,230 --> 00:04:38,790
And as to the LDA takes steam.

73
00:04:39,080 --> 00:04:42,530
I could actually read them using got comment, got the name of the file.

74
00:04:42,670 --> 00:04:44,470
A study out of the extreme.

75
00:04:44,770 --> 00:04:48,170
I'll see actually contents of as LDA takes the file.

76
00:04:48,410 --> 00:04:49,670
But this file is empty.

77
00:04:50,030 --> 00:04:53,220
Let me read the contents of a study error file.

78
00:04:53,510 --> 00:04:55,430
And there was this text to present.

79
00:04:55,900 --> 00:05:01,670
And this text was produced by a study out Datastream of God Brought US.

80
00:05:03,090 --> 00:05:09,750
And if you'll supply file name as argument for God comment, you are not able to send any additional

81
00:05:09,750 --> 00:05:13,710
text via a study in datastream to court process.

82
00:05:14,280 --> 00:05:21,450
And the reason for that is that this file is actually streamed to the in of God process.

83
00:05:22,500 --> 00:05:23,910
That's how it works under the hood.

84
00:05:24,540 --> 00:05:31,470
But a study out is right, the right of girls to parent process and burn notice in this case is best

85
00:05:31,470 --> 00:05:31,860
show.

86
00:05:32,790 --> 00:05:34,920
All right, now, let me demonstrate to that.

87
00:05:35,200 --> 00:05:40,810
Avery datastream a study in a study out and study error has numeric ideas.

88
00:05:41,650 --> 00:05:42,950
Let me enter full increment.

89
00:05:43,450 --> 00:05:43,750
Cut.

90
00:05:44,200 --> 00:05:44,740
Zero.

91
00:05:45,040 --> 00:05:47,470
Less than sine and SDD error.

92
00:05:47,700 --> 00:05:49,550
The extreme enter.

93
00:05:50,080 --> 00:05:53,290
And I get same result as before.

94
00:05:55,420 --> 00:06:03,910
And actually, in this comment, I have told that I want to send as to the Arabic text defile via standout

95
00:06:04,030 --> 00:06:05,980
in to Qatar process.

96
00:06:06,610 --> 00:06:15,360
And actually this combination zero allows them tells that zero is ideal of SDD in datastream.

97
00:06:16,860 --> 00:06:18,810
One is idea of a study.

98
00:06:18,840 --> 00:06:22,470
Our data stream and two is idea of a study.

99
00:06:22,590 --> 00:06:23,520
Our data stream.

100
00:06:24,490 --> 00:06:25,130
Let me show you that.

101
00:06:25,570 --> 00:06:26,480
Let me clear terminal.

102
00:06:26,890 --> 00:06:30,050
And let me remove actually those two files are M.

103
00:06:30,200 --> 00:06:34,980
S DDA error that the extreme and our M is to the outdoor deal.

104
00:06:35,650 --> 00:06:37,300
Now, those files are absent.

105
00:06:37,810 --> 00:06:38,080
Right.

106
00:06:38,440 --> 00:06:39,390
Let me clear terminal.

107
00:06:39,640 --> 00:06:41,830
And here again, I'll use Alaska amend.

108
00:06:42,100 --> 00:06:43,510
It will start this process.

109
00:06:43,810 --> 00:06:48,040
And I want as to the old data stream of this protest to be sent to file.

110
00:06:48,760 --> 00:06:53,230
And as to the air date approaches, I'll send to annuls or file for that.

111
00:06:53,320 --> 00:06:56,530
I could use a numeric I.D. of data streams.

112
00:06:57,220 --> 00:06:59,490
Zero work app is I.D. of SDD.

113
00:06:59,530 --> 00:07:07,440
In one is I.D. of a study out and using SISA index one greater than sign without space, please.

114
00:07:08,140 --> 00:07:11,440
I could send as to the our data stream to specific file.

115
00:07:11,560 --> 00:07:14,500
Or if you want to Oslo process, I'll send you the file.

116
00:07:14,610 --> 00:07:16,630
A study out dodig steam.

117
00:07:17,410 --> 00:07:25,930
Next comes SpaceX and he'll we'll be to greater than site do is iodine up as to the air datastream and

118
00:07:25,960 --> 00:07:31,120
I'll send it to Amar's or file SDD our dot x2 like so.

119
00:07:32,650 --> 00:07:36,260
With this comment, I will redirect bulls as to the out.

120
00:07:36,410 --> 00:07:41,060
And as to the air data streams of L'Esperance, that's press enter.

121
00:07:41,440 --> 00:07:47,020
And of course, I see nothing here in the terminal because as the day out was redirected to the file

122
00:07:47,410 --> 00:07:51,630
and here I should see two newly created files as to the outtakes.

123
00:07:52,180 --> 00:07:53,960
And as to the error, the digs deep.

124
00:07:54,400 --> 00:07:55,860
And of course, you could guess that.

125
00:07:56,080 --> 00:07:57,970
As to the Arab street is empty.

126
00:07:59,000 --> 00:08:03,050
And as to the outtakes 60 complains list of folders Dorce folders.

127
00:08:03,460 --> 00:08:07,720
Let's have a look at as to the outtakes team God, SDD out of the extreme.

128
00:08:09,800 --> 00:08:15,150
Here are those folders and let's have a look at the esta dia error, Detective.

129
00:08:15,500 --> 00:08:16,190
It is empty.

130
00:08:17,180 --> 00:08:17,570
All right.

131
00:08:18,020 --> 00:08:23,400
But if I repeat same comment about Wills and Kate D, I process.

132
00:08:23,870 --> 00:08:24,470
Let me do that.

133
00:08:26,050 --> 00:08:28,720
I don't see that as Dedede error.

134
00:08:29,170 --> 00:08:37,020
The text file now contains this error that was produced by this process and sent via ethe as to D error

135
00:08:37,130 --> 00:08:37,770
datastream.

136
00:08:38,510 --> 00:08:43,890
And please note again that this too is numeric I.D. of SDD error datastream.

137
00:08:44,300 --> 00:08:47,050
One is idea of SDD out datastream.

138
00:08:47,750 --> 00:08:52,490
Also, please notice that was greater than sine we create those files.

139
00:08:52,550 --> 00:08:53,840
This one and this one.

140
00:08:54,110 --> 00:08:57,170
Each time from scratch we rewrite previous file.

141
00:08:57,620 --> 00:09:02,300
If you want to append data to the file, you could use two arrows instead of one.

142
00:09:02,690 --> 00:09:04,400
Let me show you that here.

143
00:09:04,430 --> 00:09:07,150
Real beom rather than sine like so.

144
00:09:07,850 --> 00:09:10,490
And here will be one more sign as well.

145
00:09:11,140 --> 00:09:14,900
Press enter and less with contents of our file.

146
00:09:14,990 --> 00:09:15,620
Once again.

147
00:09:15,860 --> 00:09:19,520
And now we see that this text was appended to this text.

148
00:09:20,510 --> 00:09:27,650
Also, let's repeat the same comment about the let's for example, instead of mce d i r let's use got

149
00:09:27,650 --> 00:09:33,950
command and let's send also argument to this command and this argument will be name of the file that

150
00:09:33,950 --> 00:09:34,610
is absent.

151
00:09:34,640 --> 00:09:41,450
Now in this folder where we are on in cut command and in such case when file is absent, God will produce

152
00:09:41,510 --> 00:09:41,950
an error.

153
00:09:42,410 --> 00:09:44,450
And let's see which area it will produce.

154
00:09:44,870 --> 00:09:52,850
Let's hear type for example, absent file the D like so and this syntax will remain in place.

155
00:09:53,300 --> 00:09:58,040
Let's press enter and let's with contents of SDD out the text file.

156
00:09:58,490 --> 00:10:03,200
And I see that this new line appeared here in this text file.

157
00:10:03,890 --> 00:10:05,010
Absent father takes D.

158
00:10:05,150 --> 00:10:09,110
No such file or directory and that is a result of this command.

159
00:10:09,680 --> 00:10:12,410
This file Epson file of 60 is absent.

160
00:10:13,480 --> 00:10:14,030
Here it is.

161
00:10:14,670 --> 00:10:16,500
You don't see this file here in this folder.

162
00:10:16,840 --> 00:10:23,580
This white card command has produced this error and it has sent this error by as to the error datastream

163
00:10:23,860 --> 00:10:26,940
to this file and using two arrows.

164
00:10:27,000 --> 00:10:30,510
We actually have append that contents to existing file.

165
00:10:30,990 --> 00:10:34,650
That's why those lines still present here in this file.

166
00:10:34,830 --> 00:10:37,260
And this line was appended like so.

167
00:10:38,160 --> 00:10:43,200
All right, guys, this code you are able to read direct data streams from a specific brought us.

168
00:10:43,620 --> 00:10:49,670
And you could send out those dreams, eyes or files, as we have tried in this lecture or to Oslo processes.

169
00:10:50,520 --> 00:10:55,990
And if you want to send the data from one process to ad nauseum, it is called biting.

170
00:10:56,520 --> 00:10:59,400
And let me demonstrate how to perform Bipin in the next lecture.

171
00:10:59,520 --> 00:11:00,210
I'll see you down.

172
00:11:00,340 --> 00:11:00,490
Bye.

