I recently installed a Debian Jessie amd64
headless server (using one of the netinstalls). The server is up and running and the system is working as expected.
But then I compiled a .cgi
(written in C++). The compilation (using g++ 4.9.2
) went well but as soon as I try to execute the file from bash
it says No such file or directory
.
As I read through other posts regarding this error I tried utilizing the file
, ldd
and even the cat
command, but all of them say they can't find that file.
ls -l
shows the file with 755
permission as expected.
But the bash-completion does nothing, it doesn't autocomplete the path.
But now it gets interesting:
Using midnight commander
I can successfully read, edit and execute the binary and apache
lists the complete directory index including the .cgi
and would even let me download it.
What is going on?
Since I could execute it from mc
I don't suppose it's about the executable itself.
Could the bash be corrupted?
Thanks in advance for any insights!
index.cgi
. No spaces or other hidden characters... – Mäx Müller Oct 6 '15 at 9:46i
it got aî
(with accent or whatever). Thanks man for pointing me in the right direction! If you post this as an answer I'll give you an accept! – Mäx Müller Oct 6 '15 at 12:01