Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Dart-o-s opened this issue Feb 12, 2025 · 3 comments
Open

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

Dart-o-s opened this issue Feb 12, 2025 · 3 comments

Comments

@Dart-o-s
Copy link

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

@mathieu-aubin
Copy link

mathieu-aubin commented Feb 12, 2025

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
Copy link

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

@Dart-o-s
Copy link
Author

Dart-o-s commented Feb 21, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants