[maemo-developers] System calls

From: Visti Andresen talpa at galnet.dk
Date: Sun Feb 18 22:41:42 EET 2007
On Sun, 18 Feb 2007 18:56:31 +0000
"Carlos GP" <cbing0786 at gmail.com> wrote:

> Hi there!
> I'm trying to build and application and I need to make a system call
> I try, for instance, system("ls>kk") and nothing goes wrong, but the fact it
> doesn't create any archive kk with the information.

I take it that system returns 0 as the return value from ls (0 normally means no error)

> Do I need to set permissions? What can I do to solve it?

Normally you don't need any special permissions to execute a command.
However the user that started the program may not have write permissions 
to the "current directory"?

You could try 
as you almost always has write permissions to /tmp

> What I really want is do a wget to an input website.
> -I'm developing for N800
> -In bora enviroment.
> Thanks, and sorry for my English
> -- 
> Carlos GP

The following program works just fine under my regular Linux box.

#include <unistd.h>

int main()
  return 0;

More information about the maemo-developers mailing list