Executing programs vs executing scripts in C

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 พ.ค. 2020
  • Check out our Discord server: / discord

ความคิดเห็น • 27

  • @eyadalhussin4283
    @eyadalhussin4283 3 ปีที่แล้ว +22

    It is so sad that this Channel is not with the top turorials channels.
    I recommend it for every student. 90 Minutes lecture can be done here within 20 minutes.
    Thanks and wish you all the best !

  • @onurcanisler
    @onurcanisler 2 ปีที่แล้ว +6

    *You are one of the few people who have helped me in my life. You are a living angel...*

  • @Clarin3t1
    @Clarin3t1 2 ปีที่แล้ว +3

    Wow!! You are WAY better than my teacher. Thank you so much I really cannot overstate that these videos are saving my life in college.

  • @shahqu5dohcoh9ri88
    @shahqu5dohcoh9ri88 3 ปีที่แล้ว +6

    But what if we write
    execlp("bash", "bash", "-c", "ping -c 3 google.com | grep rtt", NULL);
    ??

    • @CodeVault
      @CodeVault  3 ปีที่แล้ว +7

      That would work since you're basically simulating a shell

  • @jonassundt925
    @jonassundt925 3 ปีที่แล้ว +2

    Your videos are amazing! Thanks!!

  • @hectordoyle4718
    @hectordoyle4718 4 ปีที่แล้ว +7

    darn, your videos are tailor made for me - thank you!

    • @CodeVault
      @CodeVault  4 ปีที่แล้ว +5

      Haha :D
      My reasoning is that, if one person asked me about something they misunderstood then there's at least 10 others that didn't ask. So, really, thanks for asking!

  • @metmay
    @metmay ปีที่แล้ว

    Yes, I agree, with the comments below this channel with its content is absolutely the best and richest in terms of information, its top of the top.
    Thank you so much for the valuable videos. I have been learning from you for the past year so far

  • @josemota3617
    @josemota3617 4 ปีที่แล้ว +1

    keep the good work !

  • @Joe-wv8gl
    @Joe-wv8gl ปีที่แล้ว

    I love you bro ❤

  • @shaharrefaelshoshany9442
    @shaharrefaelshoshany9442 2 ปีที่แล้ว

    Best content

  • @Not_Even_Wrong
    @Not_Even_Wrong 5 หลายเดือนก่อน

    Your videos are amazing. Where did you learn all this? Can you recommend some books or is that the kind of stuff your just picked up over time?

    • @CodeVault
      @CodeVault  5 หลายเดือนก่อน +1

      I heard good things about "The C Programming language" by the creators of C.
      Most of these concepts I learned on my own by reading documentations and experimenting

    • @Not_Even_Wrong
      @Not_Even_Wrong 5 หลายเดือนก่อน

      That book is not as good as your videos ;)

  • @asifsaad5827
    @asifsaad5827 4 ปีที่แล้ว +1

    hi..can i ask you something?
    can you do them as a series?
    that would be a lot helpful then!!!
    TIA!!!

    • @CodeVault
      @CodeVault  4 ปีที่แล้ว +1

      The processes videos are more or less released in order and would be a full course at the end.
      Here's the link to the playlist: th-cam.com/play/PLfqABt5AS4FkW5mOn2Tn9ZZLLDwA3kZUY.html
      Or do you mean something else?

    • @asifsaad5827
      @asifsaad5827 4 ปีที่แล้ว

      @@CodeVault thanks..you already answered my quest
      keep up the good work!!!!

  • @ydidiyaassefa5415
    @ydidiyaassefa5415 2 ปีที่แล้ว

    I do not know if you still see the comments please if you do....how would you go about to fix this exec problem in order for the exec to execute a custom bash file we have written somewhere.

    • @CodeVault
      @CodeVault  2 ปีที่แล้ว +1

      You can actually just execute the sh program with some arguments, like this:
      char* script = "ls -la | wc";
      execlp("sh", "sh", "-c", script);

    • @ydidiyaassefa5415
      @ydidiyaassefa5415 2 ปีที่แล้ว

      @@CodeVault thanks for the quick reply

  • @alanvillegas8950
    @alanvillegas8950 ปีที่แล้ว

    So I cannot execute a c program with execl? only ping.
    I would like to run a compiled c program that actually is just a simple Hello world

    • @CodeVault
      @CodeVault  ปีที่แล้ว

      You can. You'll just need to specify the whole path to the executable as the first argument

  • @adampaulukanis
    @adampaulukanis 9 หลายเดือนก่อน

    You are good sir but I think you could do better. Bash only has | as a pipe symbol? I use ksh which is *similar* to bash or bash is like ksh hehe

    • @CodeVault
      @CodeVault  9 หลายเดือนก่อน +1

      There are plenty of operators in bash. I will cover more in the future

  • @naitside3410
    @naitside3410 2 ปีที่แล้ว +1

    Я понял !