 Okay, this is a response video. I apologize for any audio quality issues with this. I'm not at home. So I'm recording this on my laptop out and about and Today I'm going to respond to a comment that I got about a month ago I'm just finally getting around to answering it and this was on a video. I did using busyboxes, HTTPD and running scripts using the CGI bin folder So I do recommend checking out that video, but basically this person here is asking if you want to use a Lua script Can you put it inside a bash script like this and make it executable, right? You could do that But that's really not the best way to do that. And what I mean by that is when you set up HTTPD with the CGI bin any executable script or compiled program you put in the CGI bin folder Will be executed can be executed and it'll be executed as whatever user you started the CGI bin or the HTTPD as your web server as So although you could create a bash script and then call a Lua script in there You could also just call Lua script Directly. So here's an example on my local host on port 8888. I've started up the HTTPD With busybox and I have a hello world. This is a Lua script as you can see and If I go in here You can see I just give it, you know the Lua script shabang line and we have a hello world The only difference between you know your standard Lua script and This script is that you have to have you have to tell again the web browser when it's requesting stuff What type of file this is and then have two new lines after that. So we have content type Text and it's plain it's plain text and then we give it the two new line character And then we can output, you know, hello world and if we were to come here and Copy this paste it a few times save it I can now refresh the code over here and as you can see it's printed hello world a couple times Now it's important to know the content type that you're outputting We're working with plain text here, but we can also do HTML as I've shown in previous videos So go ahead and save that as HTML But you'll notice now that our formatting is different because HTML doesn't recognize our new line characters being put out by our Print function if we were to look at the source code of this you can see that We do have It formatted as a text but the HTML output is different but with HTML obviously you can output HTML So if I wanted to make you know, this one look like a button I Can easily put in button tags And there we go. I have a button there and if I wanted a new line here I can easily put in a line break and If I wanted to you know anything anything with HTML so You can have whatever Formatting you want with the output of your script and of course you can also output data, you know such it in formats such as like CVS or JSON But that's it. I mean and again, this can be a this could be see this could be C plus plus This could be Pearl this could be Python obviously Lua or bash or some other shell As long as you know, it runs on your system The only thing you need to do different is make sure you output This content type at the beginning of the file and there's lots of different type of content types right now We're talking about text HTML or plain text But you could have a script that passes an image if you'd like then you'd have to you know Let it know that it was a JPEG image or a PNG image here But yeah, I wanted to just touch on that because this is a great way if you do it, you know securely to Remotely access data on your system. You can have scripts run and output Information and again here. We're creating a user interface using HTML, but you can also just output You know again your data in a format that your another server can grab or your web browser can process So that's it. I just wanted to to comment on that I think that use it user Jan for asking that sorry. It took me a month to answer it But yes, the way you said it would work But if you're really just using a Lua script and not running any other bash in there You're better off just creating a Lua script and calling it, you know from your, you know web browser That's it. I do thank you for watching. Please visit filmsbychrist.com. That's Chris the K It's a link in description again. Sorry about any audio issues with this video I'm kind of making it on the spur of the moment while I'm out. Thanks for watching and as always have a great day