Not able to execute an exe file from my location


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Not able to execute an exe file from my location
# 1  
Old 09-07-2012
Error Not able to execute an exe file from my location

Hello all,
Am facing a peculiar problem, I have copied a utility exe from a bin folder into my local temp folder. I am trying to execute that exe, but it throws out an error saying "No such file or directory".
I have given 755 & 777 permissions to it and I tried, but it still throws out that error.
I have added my directory into the PATH variable, so that it calls for my exe when I do which <exe name>, it still throws out the same error.

The file had rwxr-sr-x permission in its bin folder, has it to do something with that.

Am unable to fix this issue, could anyone please help me. Smilie

Thanks in advance.

Regards,
Abhishek S.
# 2  
Old 09-07-2012
Hello,
who is the name of exe file?, It had spaces..
# 3  
Old 09-07-2012
777 is not the magic sledgehammer to fix all problems. 755 will do.

'no such file or directory' may not mean the program itself, it might mean it can't find a library it wants. Try ldd /path/to/programname and see if any of the libraries it wants are missing.
# 4  
Old 09-07-2012
Hi Corona688
I have tried checking for the library files which it was checking for, with the help of the same command you have mentioned. The library files exists.

Thanks,
Abhishek S
# 5  
Old 09-07-2012
Could you post its output anyway?

Also, what is your system?

Do you have strace? Maybe the application is trying to open config files you didn't copy with it, or some such.
# 6  
Old 09-12-2012
Hi Corona,
I think it was with respect to a system bit file. That is what my lead said. I escalated the issue and I was nt given the fix for that.
They just gave me a new exe, which works fine. Just wanted to figure it out why it dint work.

I just got an error saying - "No Such File or Directory" when I executed that exe.

But anyway, I thank you for your time on this.

Regards,
Abhishek S.
# 7  
Old 09-17-2012
The issue is the file permission

If you look at the ls output indicating there is a "s" in the group.

rwxr-sr-x

The "s" in the group position indicates that when you execute this program, your group is changed to the owner of this program. From your description, the exe is probably trying to access something that is only accessable by users defined to be in the original owners group.

The detailed descriptions of the issue you are having can be found in sgid file permission.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to find a existing file location and directory location in Solaris box?

Hi This is my third past and very impressed with previous post replies Hoping the same for below query How to find a existing file location and directory location in solaris box (1 Reply)
Discussion started by: buzzme
1 Replies

2. Shell Programming and Scripting

how to execute an exe at startup using rc.local

I want to execute a qt exe program at startup. That is after automatic login instead of loading Desktop and seeing it, the program quickly pop up to the screen. For this, I think we should add the script to rcx.local rather than rc.local I guess though.. I tried adding a script to /etc/rc.local... (0 Replies)
Discussion started by: dr_mabuse
0 Replies

3. Shell Programming and Scripting

How to copy a file from one location to another location?

I have file file1.txt in location 'loc1'. Now i want a copy of this file in location 'loc2' with a new file called test.txt. Please help me how to do this in shell script. (1 Reply)
Discussion started by: vel4ever
1 Replies

4. Shell Programming and Scripting

execute script from any location.

Hello, Can someone tell me the method to execute the script from any location on linux server whereas It resides on a particular location e.g.: Suppose script resides at this location /efare1/dist/src monitor.sh But I want If user know the name of the script he should not remember... (2 Replies)
Discussion started by: anuragpgtgerman
2 Replies

5. Shell Programming and Scripting

File created in a different location instead of desired location on using crontab

Hi, I am logging to a linux server through a user "user1" in /home directory. There is a script in a directory in 'root' for which all permissions are available including the directory. This script when executed creates a file in the directory. When the script is added to crontab, on... (1 Reply)
Discussion started by: archana.n
1 Replies

6. Shell Programming and Scripting

[Solved] how Execute a Perl Script from any location on the machine

hi guys, i have a query, i wrote a perl script that will collect cpu statistics Scripts/myScripts/ cpu.pl i want to make this file so that i can run it from any location on any drive, without giving the path explicitly. like $/home/ravi/perl cpu.pl i tried this... (8 Replies)
Discussion started by: niteesh_!7
8 Replies

7. Shell Programming and Scripting

Put one string from one location to another location in a file

Hi Everyone, I have 1.txt here a b c' funny"yes"; d e The finally output is: here a b c d e' funny"yes"; (1 Reply)
Discussion started by: jimmy_y
1 Replies

8. Programming

c++ : Use of System() to execute .exe with parameters

Hello, I 've trie to execute a a program with parameters unsuccessfully and i take the above message : "The system cannot find the path specified." I used a variaton of the above command : system("\"C:\\xxx\\xxx\\xxx.exe -xxx -xxx xxx.xxx xxx.xxx xxx.xxx\""); Thanks in advance (4 Replies)
Discussion started by: eusta
4 Replies

9. Shell Programming and Scripting

How can I do a rexec to execute un C exe ?

Hello, I would like to do a rexec to execute a C exe (prog.e) : rexec -l user -p password host prog.e When I execute this command, I have this error : prog.e : can not find lib.o But, When I execute prog.e directly in the remote machine : well done ! No error output. Thks for your... (4 Replies)
Discussion started by: Lika
4 Replies

10. Programming

how To edit exe to insert a serial no wich can be usd by runing exe

At time of installation I have to open the resource. and i have to insert a string serial number in the exe. please provide me code to edit the exe (in solaris) to insert a serial number which can be used by exe at run time. (6 Replies)
Discussion started by: ssahu
6 Replies
Login or Register to Ask a Question