Комментарии:
it was helpful. Thanks a lot
ОтветитьVery nice video
Ответитьvideos are super informative , wannted more video on pipes and dup2 on realtime application .
Thank you for the great explanations
It was really helpful to understand the basic. Could you please explain How to redirect pipe in and out to standard functions ?
ОтветитьMan, u are cool. Ty very much. My lecturer did not explain the material, but with your help, I learned everything on my own!!
ОтветитьGood explanation thanks
Ответитьbro you're the goat
ОтветитьGreat video . Where can i get the code ?
Ответитьincredible video, thank you!!
ОтветитьThank you so much for releasing this video! It helped me a lots in OS classes!!!
Ответитьwhat if we dont close file after dup2(file, stdout_filenon); or it does not matter?
ОтветитьThis may be the last video I watch of yours at least for a while as my semester is ending and I most likely will never write in C again. I thank you for helping me through my semester. You were a comforting and friendly face through the whole thing. You helped me on a lot of my assignments. You helped me understand programming much better as a whole. I will always be thankful.
Ответитьi love u
ОтветитьAMAZING. BEST CHANNEL EVER
ОтветитьHelped me to undestand dup2. Love ur content, hope ur channel will grow bigger, u deserve it.
ОтветитьI appreciate your explanation and energy, all my peers watch your videos and helps us finish our projects , thank you so much.
Ответитьyou are amazing.
ОтветитьIn this case what we do in each process is then same, namely, increment the number by 1, so the order the process excecutes doesn't matter. But what if we do different things in process? For example, we want to multiply the number by 2, then add 2, then divide by 4, the order we do this definitely matters to the result, so how do we make sure the processes are excecuted in order? Thank in advance.
ОтветитьThese are wonderful presentations. They're relevant, accurate, clear, succinct, and nicely done. Thank you.
ОтветитьYOU ARE THE MVP
ОтветитьPerfectly explained, great work!
Ответитьlife saver sir , thank you
ОтветитьVery good
Ответитьwhat if we first close the standard output and then create the file. would it also work?
ОтветитьYou sure hear this alot , but you are really so good ! thx you !
Ответитьthank you very much
ОтветитьThis is the most helpful video I have watched in my entire life. I am not even joking. Thank you so much!!
ОтветитьSomehow I cannot get it to work. The open part works fine, the file gets created but nothing gets printed to it. If I find the reason why I'll report back. Edit: I'm fucking stupid I put the file in readonly instead of write only. oops
ОтветитьI don't understand why you delete the "int file2 = " at the end, can you explain it more ? Great content btw !
ОтветитьHow can i restore STDOUT to File Descriptior 1
ОтветитьThank you so much for such a great video. Keep it up and I hope people will realize how fantastic this channel is.
Ответитьvery nice
Ответитьhow can i reproduce behaviour of < {file name} in c? which descriptors i should redirect?
ОтветитьYOU ARE A SAVIOR
ОтветитьVery good video and exactly what I was looking for but still this C++ code doesn't work (date still shows up on screen instead of in file) :
int shell(bool showPrompt) {
pid_t child1 = fork();
if (child1 == 0) {
string naam = "eric.txt";
const char *bestandnaam = naam.c_str();
int bestand = open (bestandnaam, O_CREAT | O_WRONLY, 0777);
if (bestand == -1) cout << "Hier gaat iets mis kind";
int geslaagd = dup2(bestand, STDOUT_FILENO);
if (geslaagd < 0) cout << "Hier gaat iets mis dup2";
Command cmd = {{string("date")}};
executeCommand(cmd); // this performs execvp(cmd)
}
else return 0;
}
это интересно. Единственное я не понимаю как работает файловый дескриптор. Я понимаю что два процесса НЕ могут иметь один и тот же файловый дескриптор с номером 3. Но как эта 3 хранит и передаёт открытый файл ? Это очень сложный вопрос, и если переводчик позволит тебе понять суть вопроса и ты ответишь, будет замечательно.
Ответитьyou are the big boss ty <3
ОтветитьMuy buenos videos, me han ayudado mucho 👍
Ответитьawesome video!
ОтветитьYour content is just amazing, easy to understand.. really helpful, for sure deserve more viewers/subscriber,
Thanks again...really appreciate it..
You channel is 100% underrated, neatly organized and perfectly explained!
Ответитьthis is the best explanation
ОтветитьI'm blown away by this video, thanks for showing these hidden tricks.
ОтветитьHey, thanks for your awesome videos!
QUESTION: How do you go directly into a variable (e.g. char array) directly without opening a FILE?
Great video!! This explanation will really help me on a project I'm working on
ОтветитьGreat explanation, incredible. Thank you so much.
ОтветитьThank you very much for your great explanation! Just curious what IDE are you using?
ОтветитьThat is such a nice explanation i love this guy
Ответить