Executing programs vs executing scripts in C

Поделиться
HTML-код
  • Опубликовано: 19 май 2020
  • Check out our Discord server: / discord

Комментарии • 27

  • @eyadalhussin4283
    @eyadalhussin4283 2 года назад +19

    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 Год назад +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.

  • @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 !

  • @Not_Even_Wrong
    @Not_Even_Wrong 3 месяца назад

    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  3 месяца назад +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 3 месяца назад

      That book is not as good as your videos ;)

  • @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

  • @Joe-wv8gl
    @Joe-wv8gl 10 месяцев назад

    I love you bro ❤

  • @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: ruclips.net/p/PLfqABt5AS4FkW5mOn2Tn9ZZLLDwA3kZUY
      Or do you mean something else?

    • @asifsaad5827
      @asifsaad5827 4 года назад

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

  • @shaharrefaelshoshany9442
    @shaharrefaelshoshany9442 2 года назад

    Best content

  • @ydidiyaassefa5415
    @ydidiyaassefa5415 Год назад

    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  Год назад +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 Год назад

      @@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 7 месяцев назад

    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  7 месяцев назад +1

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

  • @naitside3410
    @naitside3410 2 года назад +1

    Я понял !