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

  Unix/Linux 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 Linux or Unix Question    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 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 Unix and Linux 06-27-2013
DGPickett DGPickett is offline Forum Advisor  
Registered User
 
Join Date: Oct 2010
Last Activity: 17 February 2015, 1:56 PM EST
Location: Southern NJ, USA (Nord)
Posts: 4,671
Thanks: 8
Thanked 585 Times in 558 Posts
If gnuplot is a shell script, it needs to start with a #! line as described in man execvp.
Sponsored Links
    #3  
Old Unix and Linux 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 Unix and Linux 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 974 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 Unix and Linux 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 Unix and Linux 06-27-2013
MadeInGermany MadeInGermany is offline Forum Advisor  
Registered User
 
Join Date: May 2012
Last Activity: 1 April 2015, 8:25 AM EDT
Location: Simplicity
Posts: 2,312
Thanks: 160
Thanked 699 Times in 630 Posts
You talk about /import/tools/local/ but the error is about /import/freetools/local/ ?
Sponsored Links
    #7  
Old Unix and Linux 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 Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Unix or Linux Image 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-16-2012 11:23 PM
find specific file names and execute a command depending on file's name armando110 Shell Programming and Scripting 3 02-09-2012 08: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 06:17 AM
Execute a file from a different account DemonGal711 UNIX for Dummies Questions & Answers 0 09-28-2008 09: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 04:42 PM



All times are GMT -4. The time now is 09:10 AM.