Only Execute Permission for Others...

This might be very silly question but i dont know y is it so...

i Have script

I have Given the permissions in the following manner...

-rwxrwx--x 1 root system 3 Jun 08 15:46 temp

I want no one to see what is present in that but should be able to execute it..

but when i try to execute it as an user i get following error..

The file access permissions do not allow the specified action.
ksh: temp: 0403-016 Cannot find or open the file.

I am executing it from the directry where it is present...

No user is able to execute it even though i gave execute permission for others...

You have misuderstood the permissions, and how they work.

In analogy what you have done is give the user a book and asked them to produce a summary without opening it.

Perderabo wrote quite a long and detailed thread in the Tips and tutorials section which explains this subject rather well.

Thats right..
i have seen the thread in Tips and tutorials section by Perderabo..
he explains the way the Permission bit work...

But my clients reqirement is this way....
He wants users to execute the script but they should not be able to see the contents fo the script...

Its bascially a compilation script.
Every one is making a copy of it and manupilating its contents at there local level...and moving the generated load....

That is making problems as there are not using all the compiler options...

Is there no way that with out a read permission on a file we make the user to execute it for compiling the programs...???

ksh93 comes with the shcomp utility to create a binary file from the shell script. ksh can execute this binary file just as a normal script.