Re: something like system function
- From: Oche Satriani <oche satriani gmail com>
- To: Chandra Shekhar <yourchandrashekhar gmail com>
- Cc: gtk-list gnome org
- Subject: Re: something like system function
- Date: Sat, 16 May 2009 07:23:21 +0700
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]