File cannot execute


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers File cannot execute
# 8  
Old 06-28-2013
What give
Code:
file /bin/ls /import/freetools/local/gnuplot/4.2.2/bin/gnuplot
df /bin/ls /import/freetools/local/gnuplot/4.2.2/bin/gnuplot

?
# 9  
Old 06-28-2013
You can use strace/truss/tusc to trace the execution and see what stimulates the error. It's very educational!
Code:
truss -faelo /tmp/gnuplot.tr -rall -wall -xall tcsh -c /import/freetools/local/gnuplot/4.2.2/bin/gnuplot

Options vary by tool and O/S.
# 10  
Old 07-01-2013
Wow, the two of them are quite different...
input:
Code:
file /bin/ls /import/freetools/local/gnuplot/4.2.2/bin/gnuplot

output:
Code:
/bin/ls:        ELF 32-bit LSB executable 80386 Version 1, dynamically linked, stripped
/import/freetools/local/gnuplot/4.2.2/bin/gnuplot:      ELF 32-bit MSB executable SPARC Version 1, dynamically linked, not stripped

Quote:
Originally Posted by MadeInGermany
What give
Code:
file /bin/ls /import/freetools/local/gnuplot/4.2.2/bin/gnuplot
df /bin/ls /import/freetools/local/gnuplot/4.2.2/bin/gnuplot

?
# 11  
Old 07-01-2013
So, you got a SPARC binary on an x86 system, try again.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Find a file and if exists , execute a different file

Good Morning All, I'm a novice and please excuse me if i did miss some of the forum rules. What my intention is, i have a file (services) residing @ /u01/Oracle/services. I know i can use the find command to find the "service" file. I get this file from a windows box and there is no certain... (8 Replies)
Discussion started by: thinkingeye
8 Replies

2. Web Development

Cannot execute sh file using button click in php file in apache

I the problem that i facing is cannot use button click to execute the sh file that store in the same location. the program file is a php file and running in apache2. the code that i run is show below <button onclick="sh()" name="sh">SH</button> <script type='text/javascript'> function sh()... (5 Replies)
Discussion started by: zhengkoon8
5 Replies

3. Shell Programming and Scripting

find specific file names and execute a command depending on file's name

Hi, As a newbie, I'm desperate ro make my shell script work. I'd like a script which checks all the files in a directory, check the file name, if the file name ends with "extracted", store it in a variable, if it has a suffix of ".roi" stores in another variable. I'm going to use these two... (3 Replies)
Discussion started by: armando110
3 Replies

4. Shell Programming and Scripting

How do I execute my file so it does one of 2 algorithms? such as ./file SPN??

Hi I completed a project for school where we had to do cpu scheduling by reading in a file processes.txt and then doing 2 algorithms on it and printing out the order in which processes execute (current time to current process executing) and then doing some calculations (turn around time, etc.).... (2 Replies)
Discussion started by: razrnaga
2 Replies

5. Shell Programming and Scripting

Execute file without extension

Hi, I have some perl script with names like abc.pl etc. I am Solaris 9 and i am not able to run "abc", either I have to do perl abc.pl OR ./abc.pl. Could you someone provide me an insight or reference on this. So that I can understand the basic, and apply it for my purpose. Thanks John. (7 Replies)
Discussion started by: john_prince
7 Replies

6. SuSE

can not execute binary file

When I am trying to execute a script created by Perl2exe in Linux SLES 8.1 running with virtual machine on mainframe s/390 ....I am getting "cannot execute binary file".... In the linux server which are not in mainframe the scripts are fine..... Thanks for help (1 Reply)
Discussion started by: Anu10
1 Replies

7. Shell Programming and Scripting

cannot execute binary file

HI, i am trying to execute one .bin file which is a pre-installed (not compiled by me). But I am getting the error "cannot execute binary file".I checked the permissions and everything is ok. also I checked ldd <bin-filename> andit showed a msg "not a dynamic executable" Can anyone help in... (4 Replies)
Discussion started by: bhag281
4 Replies

8. UNIX for Dummies Questions & Answers

Execute a file from a different account

Okay, I have this homework assignment, and I think I have it all down path, but I just need help with this one line. Write a C Shell script that can be run under any CECS unix account and the script produces the following three lines output on the screen. Requirements 1. The first line in the... (0 Replies)
Discussion started by: DemonGal711
0 Replies

9. Shell Programming and Scripting

Need to execute 2 scripts, wait, execute 2 more wait, till end of file

:cool: I need to execute a shell script to do the following: cat a file run two back ground processes using the first two values from the file wait till those background processes finish run two more background processes using the next two values from the file wait till those background... (1 Reply)
Discussion started by: halo98
1 Replies

10. UNIX for Dummies Questions & Answers

No permission to execute file

I am logged in as root and am trying to execute a file called x_cleanup_equdata but keep getting the message ksh: x_cleanup_equdataNEW: 0403-006 Execute permission denied. I did FTP this file from another server using GET, would this make the difference? I tried chmod 666 but still no luck. ... (2 Replies)
Discussion started by: markbeeson
2 Replies
Login or Register to Ask a Question