File cannot execute


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers File cannot execute
# 1  
Old 06-27-2013
File cannot execute

Hi everyone,

I'm trying to run a plotting tool called gnuplot.

So there is a /import/tools/exe directory which has a 'gnuplot' file and a '.gnu_tool_wrapper' file. When I type 'gnuplot' in this directory, it's supposed to go through the wrapper and run /import/tools/local/gnuplot/4.2.2/bin/gnuplot, and a gnuplot prompt will show up.

However, when I do that, it shows this:
Code:
/import/freetools/local/gnuplot/4.2.2/bin/gnuplot: cannot execute

I have execute permission for all the files mentioned above, so I'm not sure what's wrong.

Does anyone have any ideas? Thanks in advance!
# 2  
Old 06-27-2013
If gnuplot is a shell script, it needs to start with a #! line as described in man execvp.
# 3  
Old 06-27-2013
Hi DGPickett,

Yes, it's a shell script, and it starts with #! /bin/sh -f.

My login shell is /bin/tcsh though, would that be a problem?
# 4  
Old 06-27-2013
Can you run other executables from that directory? If not, perhaps the filesystem is mounted NOEXEC.

Regards,
Alister
# 5  
Old 06-27-2013
Yeah, I think I can. The thing is, my manager can run it, so I'm thinking maybe it's something about my own environment.


Quote:
Originally Posted by alister
Can you run other executables from that directory? If not, perhaps the filesystem is mounted NOEXEC.

Regards,
Alister
# 6  
Old 06-27-2013
You talk about /import/tools/local/ but the error is about /import/freetools/local/ ?
# 7  
Old 06-27-2013
Quote:
Originally Posted by MadeInGermany
You talk about /import/tools/local/ but the error is about /import/freetools/local/ ?
Sorry about that. They're all freetools.
 
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