On Sun, 18 Feb 2007 18:56:31 +0000
"Carlos GP" <cbing0786 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
system("ls>/tmp/kk");
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()
{
system("ls>kk");
return 0;
}
_______________________________________________
maemo-developers mailing list
maemo-developers maemo.org
h
ttps://maemo.org/mailman/listinfo/maemo-developers
|