How to put Bash Scripts on the Web

Поделиться
HTML-код
  • Опубликовано: 29 окт 2024

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

  • @qball8up1968
    @qball8up1968 Год назад +16

    This video makes the minimalist geek in me very happy. Great video Mark.

  • @0utl4nder
    @0utl4nder Год назад +6

    This is crazy, 4 days ago i made a bash script for Directory indexing, and now YT recommended this vid, with htmx feels like React or something like that . Nice video

  • @echobucket
    @echobucket Год назад +11

    Also to make it refresh REALLY without JS, you just add a to your head tag.

    • @MarkMcNallyJE
      @MarkMcNallyJE  Год назад +1

      Yeah I just wanted to show of HTMX because it blew my mind with how nice it was to use :)

    • @Anonymouzee
      @Anonymouzee Год назад +1

      I was just going to suggest this one... ;-)

  • @soufta5872
    @soufta5872 7 дней назад

    Wait wait, I was just focussing back on bash (as this is the very first language you encounter when connecting to a linux server) and I found your vid. Cool but does this language scale ? I assume that you could everything with that language but up to which level ? Thanks

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

    Very cool video. I had to go into apache settings for arch: /etc/httpd/conf/httpd.conf and uncomment several cgi options for the code to work; otherwise it would just echo the shell command. Also had to use hx-swap="appendChild" instead.

  • @echobucket
    @echobucket Год назад +3

    The blank line is because in HTTP an empty line denotes the end of the HTTP Headers and the beginning of the HTTP Body

  • @Descent098
    @Descent098 28 дней назад

    The blank line is an HTTP thing, the blank line indicates the end of your headers and the beginning of the content. Without it your browser is expecting your HTML to be more headers. It's gotten me every time I try to do anything with HTTP.

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

    This could come in handy for my project

  • @Garock2
    @Garock2 13 дней назад

    This is chad content

  • @Badis-n2u
    @Badis-n2u 3 месяца назад

    The way i used this was by creating bash scripts that use imagemagik for image manipulation and then calling them through express js apis routes

  • @user-ui8my9zs7o
    @user-ui8my9zs7o Год назад +2

    Id really like to know how far you can take this. For a db you could use something like recutils.

    • @MarkMcNallyJE
      @MarkMcNallyJE  Год назад +2

      Yes that would be interesting! I made a video on recutils so you could use that ;) Also if you wanted to go full send you could probably quite easily use something like MySQL or SQLite for a proper backend :)

    • @user-ui8my9zs7o
      @user-ui8my9zs7o Год назад +1

      @@MarkMcNallyJE yeah! I just love the idea of easily writing an entry with a text editor! Makes things more fun.

    • @user-ui8my9zs7o
      @user-ui8my9zs7o Год назад

      Would be good for a simple testing db. Plus you can export it to a csv and import that into SQL

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

      If you make something cool let me know - I would love to see it!

  • @Crftbt
    @Crftbt 4 месяца назад

    Curious which floating window manager / desktop environment that is. :)

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

    can we also do this with nginx?

  • @channelmalta
    @channelmalta Год назад +2

    Wouldnt bash behaves like any other scripting language? Bash here is not running on the browser but on the server, basically, it's how PHP works.

    • @MarkMcNallyJE
      @MarkMcNallyJE  Год назад +3

      Yes that is true, the bash script is running on the server not in the browser like javascript would. But with the cgi you can take existing languages that you know (like bash!) and allow users to run them from a web browser so it's effectively the same thing ;)

  • @derickasamani5730
    @derickasamani5730 11 месяцев назад

    Thank you

  • @Anonymouzee
    @Anonymouzee Год назад +1

    🤣🤣🤣 Fight that javascriptieeeeesssss!!! 🤣🤣🤣

  • @JSSMVCJR2.1
    @JSSMVCJR2.1 Год назад +1

    If it ia the JavaScript Revolution, wouln't make you a counterrevolutionary? A reactionary?

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

    Can you use this to run Discord without crashing ?

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

      Maybe with a monumental amount of effort.

  • @robertcooperAZ
    @robertcooperAZ 4 месяца назад

    I did something similar using yad gui. yad gui has a --html switch (Dialog) that displays a webpage in its gui windowing on Linux. I created custom links to run bash commands in "child bash terminal" using the yad gui --html page with --print-uri switch. Here is that video. ruclips.net/video/fZefanmi1xQ/видео.html I will have to test your cgi method in a yad gui dual window "--paned" DIalog. (Thanks for sharing cgi - apache method !!!)

  • @Benjicmm
    @Benjicmm 2 месяца назад

    I hate javascript so much it's unreal