|
|
Pankaj
|
|
Sep 24, 2004 09:21:16 GMT
|
|
I am using HP UX 11.0.
I have compiled a code and generated the executable. When I run the executable, I get "Execute permission denied" although execute permissions are set.
What is the reason for this and how can I get rid of it?
Thanks in advance.
Pankaj
|
|
|
Note: If you are the author of this question and wish to assign points to any of the answers, please login first.For more information on assigning points ,click
here
|
|
|
Sort Answers By:
Date or Points
|
|
Eric Antunes
|
|
Sep 27, 2004 08:13:28 GMT
10 pts
|
|
Hi Pankaj,
Is the executable file in executables directories for the user/group?
Eric |
|
bhavin asokan
|
|
Sep 27, 2004 08:22:53 GMT
10 pts
|
|
hi pankaj,
the file is kept where.the path of file should be there in your profile.after adding entry exit the login and login again.
regds, |
|
Cheryl Griffin
|
|
Sep 27, 2004 08:31:01 GMT
10 pts
|
|
If the file is incompatible with the system type, you might also receive this error.
Check the PA-RISC level using file: # file (executable) (executable): PA-RISC1.1 shared executable dynamically linked |
|
|
Henry Chua
|
|
Sep 27, 2004 08:35:30 GMT
10 pts
|
|
Hi Pankaj,
Just out of curiosity, can u do a 'what' on the executable?. Is it possible that this binary executable file may be having some conflicts with your UX platform? where did u compile it? |
|
Sridhar Bhaskarla
|
|
Sep 27, 2004 10:51:22 GMT
10 pts
|
|
Hi Pankaj,
If the permissions are set to execute and if you are still unable to execute, then follow Cheryl's advice. It's mostly due to incompatible hardware.
$file <executable> #file type $file /stand/vmunix #CPU type
Compare them. If the CPU type is more than or equal to file type, then it should execute. Otherwise, it won't. For ex., PARISC1.1 type executables will get executed on PARISC2.0 machines but not the otherway.
-Sri |
|
Govind
|
|
Sep 27, 2004 16:22:08 GMT
10 pts
|
|
1)Are there any ACLS Set ? or is it just regular permissions set that you are using?
2)Is the name of the executable same as any other system executable which is set ahead in the $PATH which might be getting executed before this ./executable ?
3)If you create a executable to just echo "Execute permission denied", you would get the same message when you execute it ;) LOL, I guess That wouldnt be the case anyhow.
-Cheers Govind |
|
|
Pankaj
|
|
Oct 1, 2004 03:05:42 GMT
N/A: Question Author
|
|
Hi, Thanks to all who replied and it really helped me a lot. I have got the problem solved.
Thanks |
|
|
Pankaj
|
|
Oct 1, 2004 03:07:28 GMT
Thread closed by author
|
|
|
Thanks the problem has been solved |
|