On Fri, 2003-08-01 at 09:14, Dan wrote:
> Hi,
> 
> It is the same with any other application I try to run from the System()
> application.
> I don't think is a privilege problem. Even with 'ls' as command, it displays
> the directory listing and then exit with error.

If you create mysystem.c containing:

#include <stdlib.h>
#include <stdio.h>

int main() {

        int ret;

        ret = system("/bin/ls > /dev/null");

        printf("system(\"/bin/ls > /dev/null\") returned %d\n", ret);

        return(ret);
}

and compile it with:

gcc mysystem.c -o mysystem

and run:

./mysystem

what is the output?

wkr,

-- 
Envida                     http://www.envida.net/
Armand A. Verstappen       Graadt van Roggenweg 328
[EMAIL PROTECTED]       3531 AH Utrecht
tel: +31 (0)30 298 2255    Postbus 19127
fax: +31 (0)30 298 2111    3501 DC Utrecht

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to