How to execute file in linux OS

rahul s
Attachment: file execution error.pdf (124.19 KB)
Hi,
  I write simple .c code in linux editor and complie in gcc and I got
executable file. I run that file in system it work fine.Then I send this
file to mini2440 kit using serial port (sz command).
  Initially it doesnt executed it shows message Permission denied.
  Then I use chmod command and make it executable.
  But when I try to execute this file I got above error(please see
attachment).
  This same file executed on my host system but not on kit.
  Please suggest me some solution.

Juergen Beisert
You compile and run the binary on your host and it works and you try to run
the same binary on the Mini2440? If yes, try to search the web for "cross
compile".

rahul s
Thanks for reply,
     Please tell the procedure of getting executable binary output from c
file in ubantu linux OS.

Juergen Beisert
http://lmgtfy.com/?q=cross+compile

Sudhanshu Mehta
type ps and see if that process is already running .. if so kill that
process by typing 

      kill process_number

then take binary in thumb drive. connect thumb drive with mini 2440 board.

type cd /tmp
     mkdir myFolder
     cd myFolder
     cp /udisk/imageName /tmp/myFolder
     ./imageName &

hope that works

Sudhanshu Mehta
oo what i suggested is next thing

do you have makefile and all stuff??

rahul s
Thanks for reply,
   But can u tell me some think about makefile?

Sudhanshu Mehta
yes up to some level.. what is the problem,, open terminal, go to location
where everything saved. write make.. it will make an executable