Just started developing on linux to write a server app for a windows client but I'm having trouble running binaries I've created.
My server is using a reserved port (Port 80), so if I try to run it with the standard ./a.out command I get a permission denied error. That's all well and good - you need root access to open sockets on reserved ports.
What I don't understand is that when I sudo ./a.out I get a command not found error, despite the fact that I'm still in the same dir.
Am I going mad, or just being dense?
Thanks
Edit: Hmph, when I change it to an unreserved port it still gives me permission denied. Despite the fact that running from netbeans works happily.
My server is using a reserved port (Port 80), so if I try to run it with the standard ./a.out command I get a permission denied error. That's all well and good - you need root access to open sockets on reserved ports.
What I don't understand is that when I sudo ./a.out I get a command not found error, despite the fact that I'm still in the same dir.
Am I going mad, or just being dense?

Thanks
Edit: Hmph, when I change it to an unreserved port it still gives me permission denied. Despite the fact that running from netbeans works happily.
