File cannot execute | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

File cannot execute

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 06-27-2013
coldler coldler is offline
Registered User
 
Join Date: Jun 2013
Last Activity: 23 July 2013, 8:31 PM EDT
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
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!
Sponsored Links
    #2  
Old 06-27-2013
DGPickett DGPickett is offline Forum Advisor  
Registered User
 
Join Date: Oct 2010
Last Activity: 17 December 2014, 4:26 PM EST
Location: Southern NJ, USA (Nord)
Posts: 4,556
Thanks: 8
Thanked 561 Times in 536 Posts
If gnuplot is a shell script, it needs to start with a #! line as described in man execvp.
Sponsored Links
    #3  
Old 06-27-2013
coldler coldler is offline
Registered User
 
Join Date: Jun 2013
Last Activity: 23 July 2013, 8:31 PM EDT
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
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
alister alister is offline
Registered User
 
Join Date: Dec 2009
Last Activity: 11 June 2014, 8:40 PM EDT
Posts: 3,231
Thanks: 179
Thanked 973 Times in 789 Posts
Can you run other executables from that directory? If not, perhaps the filesystem is mounted NOEXEC.

Regards,
Alister
Sponsored Links
    #5  
Old 06-27-2013
coldler coldler is offline
Registered User
 
Join Date: Jun 2013
Last Activity: 23 July 2013, 8:31 PM EDT
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
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 View Post
Can you run other executables from that directory? If not, perhaps the filesystem is mounted NOEXEC.

Regards,
Alister
Sponsored Links
    #6  
Old 06-27-2013
MadeInGermany MadeInGermany is offline Forum Advisor  
Registered User
 
Join Date: May 2012
Last Activity: 17 December 2014, 8:16 PM EST
Location: Simplicity
Posts: 2,089
Thanks: 140
Thanked 613 Times in 556 Posts
You talk about /import/tools/local/ but the error is about /import/freetools/local/ ?
Sponsored Links
    #7  
Old 06-27-2013
coldler coldler is offline
Registered User
 
Join Date: Jun 2013
Last Activity: 23 July 2013, 8:31 PM EDT
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by MadeInGermany View Post
You talk about /import/tools/local/ but the error is about /import/freetools/local/ ?
Sorry about that. They're all freetools.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Cannot execute sh file using button click in php file in apache zhengkoon8 Web Programming 5 08-17-2012 12:23 AM
find specific file names and execute a command depending on file's name armando110 Shell Programming and Scripting 3 02-09-2012 09:34 PM
How do I execute my file so it does one of 2 algorithms? such as ./file SPN?? razrnaga Shell Programming and Scripting 2 12-11-2011 07:17 AM
Execute a file from a different account DemonGal711 UNIX for Dummies Questions & Answers 0 09-28-2008 10:10 PM
Need to execute 2 scripts, wait, execute 2 more wait, till end of file halo98 Shell Programming and Scripting 1 08-01-2006 05:42 PM



All times are GMT -4. The time now is 01:37 AM.