I need help with Linux and CGI files

CrackaLackaZe

Senior member
Jun 29, 2002
922
0
76
I have a xxx.cgi, and when I open it with emacs, it's just gibberish. I don't know what language the script was written in, probably perl or c. If it was written in perl then emacs would have opened it fine right? So does that mean it was written in c? If so, how do I open a legible copy of the cgi file?
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
If the file was compiled and the xxx.cgi is a binary file you need to get a copy of the source code.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0

That's the point of compiled code, you compile it so that it can be executed directly by the OS intead of having to be interpreted first. Although it's really stupid to do CGI in a compiled language.