Socket programing on beagle board

Dear all I am trying to run simple client server socket programming
example. But I am getting following error:

-sh: ./c: Permission denied

I have downloaded code from following site:
http://www.linuxhowtos.org/C_C++/socket.htm

Please give me solution for the same.

Thanks in advance.
Kunjan Shah

Did you cross-compile the program? Did you check if this program has the permission to execute? You should see something like " -rwxr-xr-x".

Regards,
Yan

Did you cross-compile the program? Did you check if this program has the permission to execute? You should see something like " -rwxr-xr-x".

Regards,
Yan

From: beagleboard@googlegroups.com [mailto:beagleboard@googlegroups.com] On Behalf Of Kunjan
Sent: Wednesday, November 16, 2011 1:25 AM
To: Beagle Board
Subject: [beagleboard] Socket programing on beagle board

Dear all I am trying to run simple client server socket programming
example. But I am getting following error:

-sh: ./c: Permission denied

try adding user execute permissions:
sudo chmod u+x ./c

or as a test:
sudo ./c