Re: something like system function



Yes, glib have something like that, you could also read the output from stderr.

http://library.gnome.org/devel/glib/stable/glib-Spawning-Processes.html

On Fri, May 15, 2009 at 11:30 AM, Chandra Shekhar
<yourchandrashekhar gmail com> wrote:
> Hi frederico,
>                   I suggest you should read about system calls available in
> C. Visit
> http://publib.boulder.ibm.com/iseries/v5r2/ic2928/index.htm?info/apis/getcwd.htm
> for getting current working directory (pwd). Also visit
> http://www.softpanorama.org/Internals/unix_system_calls.shtml
>
> for the rest of calls.
>
>
> Regards.
>
> Chandra Shekhar.
>
>
> On Thu, May 14, 2009 at 9:17 PM, frederico schardong <frede sch gmail com>
> wrote:
>>
>> Hi,
>>
>> I need something like function system of stdlib.h, but I need to get
>> the output of the command... example:
>> gchar *returned;
>>
>> returned = system("pwd");
>>
>> and returned must be the folder of the program...
>>
>> Gtk, or glib have something like that?
>>
>> --
>> Abraço,
>> Frederico Schardong,
>> SOLIS - O lado livre da tecnologia
>> www.solis.coop.br
>> _______________________________________________
>> gtk-list mailing list
>> gtk-list gnome org
>> http://mail.gnome.org/mailman/listinfo/gtk-list
>
>
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]