LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 03-26-2007, 04:03 AM   #16
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,376

Rep: Reputation: 147Reputation: 147

just check the selinux configuration. I think that you can find it at /etc/selinux/config

I can certainly execute files in my cgi-bin directory.
 
Old 03-26-2007, 07:28 AM   #17
wjevans_7d1@yahoo.co
Member
 
Registered: Jun 2006
Location: Mariposa
Distribution: Slackware 9.1
Posts: 938

Rep: Reputation: 30
Not meaning to hijack this thread, but there are side issues which have nothing to do with how your program is misbehaving, but you might want to attend to them eventually. You may even wish to take care of them now, on the theory that if you're seeking explanation for a big misbehavior, it's always good to clean up the little ones first, just to make the general picture a little simpler.
  1. To comply with standards, you'll want to put <CR><LF>, not just <LF>, at the end of every header line.
  2. To make your test more canonical in a couple of ways, you may wish to stick <LF> after "world!".
  3. Make your return code explicit.

Thus:

Code:
#include <stdio.h>

int main(int argc, char **argv)
{
    printf("Content-type: text/html\r\n\r\n");
    printf("Hello world!\n");
    return 0;
}
 
  


Reply

Tags
executable, running


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
g++ compiles but not gcc senthilpr_in Linux - Software 10 08-29-2005 02:20 PM
C code compiles on windows, but not with gcc MDBlueIce Programming 6 05-23-2005 04:33 PM
gcc, segmentation fault, though compiles... scratch09 Programming 5 11-20-2004 05:11 PM
Java, code compiles and supposedly runs fine in windows, but not linux exodist Programming 4 03-16-2004 12:47 PM
RedHat 9.0, Kernel 2.4.21, Linux-Wlan-Ng-0.2.1, Compiles and Runs. But Cant Connect. AndrewBalmos Linux - Wireless Networking 5 01-18-2004 06:18 PM


All times are GMT -5. The time now is 11:53 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration