LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-28-2003, 07:52 PM   #1
papageorgio02
LQ Newbie
 
Registered: Aug 2003
Posts: 2

Rep: Reputation: 0
./picture.cgi won't run....


When I try to run this script from the command line i get this....

[nllarson@localhost cgi-bin]$ ./picture.cgi
: bad interpreter: No such file or directory


but if I do...

[nllarson@localhost cgi-bin]$ perl picture.cgi

It runs great.....

the permissions are ok....
-rwxr-xr-x 1 nllarson nllarson 16617 Aug 27 19:32 picture.cgi

shebang line seems to be ok....
#!/usr/bin/perl



....any one have any ideas????

--nick
 
Old 08-28-2003, 09:58 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
That's correct. I don't see where the problem is...

Cool
 
Old 08-28-2003, 10:02 PM   #3
Selos
Member
 
Registered: Aug 2003
Location: Germany
Distribution: Debian
Posts: 59

Rep: Reputation: 15
i think he asks why one command works and the other command doesn't if you aks me *still wrestling with wine *
 
Old 08-28-2003, 10:15 PM   #4
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 46
do whereis perl and use the correct path to perl returned by that command in your shebang.
 
Old 08-29-2003, 08:31 AM   #5
papageorgio02
LQ Newbie
 
Registered: Aug 2003
Posts: 2

Original Poster
Rep: Reputation: 0
thanks for the replies guys...

I figured it out though.....

I originally downloaded it as a zipped file straight to my RH box. Then I read somewhere that certain files need to be put to your webserver as ASCII instead of Binary...so downloaded the script again, but this time to my windows machine, unzipped and FTP'd to my RH box as ASCII....and worked perfectly from there.....

thanks...

-nick
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
why my cgi program in c language can not run? nickhx Programming 9 08-03-2004 05:58 AM
Trying to run CGI - please help!! jacksmash Linux - Newbie 1 11-20-2003 12:28 AM
Help CGI won't run under Apache shuttleX Linux - Software 2 06-05-2003 03:37 PM
cant run cgi scripts jmdey Linux - Networking 1 01-07-2002 08:42 AM
Auto Run A Cgi Script f117bomb Linux - General 1 11-25-2001 02:18 AM


All times are GMT -5. The time now is 04:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration