I've compiled my file using the following command
gcc -o rget rget.c filerpc_clnt.c filerpc_xdr.c -Insl
I find that the file property "Allow files to be executed as program" is not enabled.
and so when i tried to execute i'm getting the permission denied message
./rget localhost mytestfile.txt bash: ./rget: Permission denied