Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


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

Rep: Reputation: 148Reputation: 148

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, 08:28 AM   #17
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.


#include <stdio.h>

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


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 03:20 PM
C code compiles on windows, but not with gcc MDBlueIce Programming 6 05-23-2005 05:33 PM
gcc, segmentation fault, though compiles... scratch09 Programming 5 11-20-2004 06:11 PM
Java, code compiles and supposedly runs fine in windows, but not linux exodist Programming 4 03-16-2004 01: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 07:18 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:33 AM.

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