websocketd icon indicating copy to clipboard operation
websocketd copied to clipboard

What file type is needed for cgi-programs on Windows?

Open Dart-o-s opened this issue 9 months ago • 4 comments

Hi, I do not get simple cgi-programs/scripts to work.

A she-bang bash script from GitBash does not work .bat does not -and- .ps1 does not, either.

I can not make easy an .exe - hm, hm, I actually have VS code, let me try that.

But I guess there is simply something wrong configured on websocketd?

Best Regards Angelo

Dart-o-s avatar Feb 12 '25 03:02 Dart-o-s

Don't take this the wrong way but... there's very little i can see from your issue other than "it's not working". Take a second, a minute if need be, and think about how you would or even could diagnose an issue with that kind of excruciating details. "I can't get it to work" doesn't even come close to showing (stating) that you took any steps to diagnose your own issue before posting. How is anyone supposed to know and understand your issue if you can't provide more than maybe working on windoze and "not working"?

I'm okay with new users and people looking for help so don't get me wrong. There's alot missing from your plea for help. Think of it this way, next time you call 911, make sure it's from a phone that can be tracked, you give out your name and at the very least, the nature of the issue and an address for help to be sent your way.

Do you understand my analogy? Show us code, show error messages, logs, try debugging, gather data.. I am on your side in the end but please, do yourself a favor by helping us help you with relevant troubleshooting data otherwise... check stackoverflow and diagnose yourself.

peace out

EDIT: To the issue... from files.org (just a quick google search has this generic answer)

CGI stands for Common Gateway Interface. Files that contain the .cgi file extension are are script files that are written in the C or Perl programming languages. These files are used to create web pages and they are usually stored within the cgi-bin folder of a website directory. The files define how web server software delegates the generation of certain web pages including executable files and stand-alone applications. These are often referred to as CGI scripts.

mathieu-aubin avatar Feb 12 '25 07:02 mathieu-aubin

To avoid having to 'relearn' stuff you did, first of all, keep current on technologies, understand your moves when you make them and also, which to me is the best of all, take notes - either physical, pictures or CODE COMMENTS - that will allow you to know why you spat in the air the day it falls right back in your face.

I mean no disrespect but... "the was maybe probably a reason why i had two ips" won't get you fqr with the community at large. I hope you can attract better help than i can provide here and if you ever find a solution to your 'issue', MAKE SURE you take the time to come back here and explain to everyone so there's a searchable record of bits, bobs and crumbs for everyone to hopefully help them with a similar 'issue'.

I'm on your side, sorry i can'y help

mathieu-aubin avatar Feb 18 '25 04:02 mathieu-aubin

@mathieu-aubin I think my 10 line question is pretty clear. So I condense it to 5 lines. """" Websocked is not executing: *.bat files *.ps1 files (That is powershell) in the CGI directory. And neither does it execute, Bash files - which is excusable as it probably can not know that GitBash is installed. """"

Your two posts are not helpful. You probably stopped reading when I mentioned windows?

So, you mean no disrespect? But I consider your posts absolutely disrespectful.

If you do not know what the expected file ending is on Windows: then don't answer.

Dart-o-s avatar Feb 21 '25 09:02 Dart-o-s

I don't know man... files are just text files until you make them executable and have a valid shebang. As i said, i don't play with windows much unless my relatives have some issues with word or something but... let's just say i was wrong with being a jerk. Okay?

Your initial question offers nothing that most can use to help you, point being, after months, you only took what FELT negative of my comment without going further. My point stands. Sorry if you took it this way and believe me, if you think this was disrespectful, hold on to your socks brother!

Keep it up

mathieu-aubin avatar May 12 '25 04:05 mathieu-aubin