Re: Starting an process ? or ping with code



Le mar, 22/06/2004 à 10:12 +0200, Magnus Wirström a écrit :
> Hi everyone !
> 
> I'm a newbie here. I'm trying to learn both C and to code with GNOME, So if i ask stupid questions, please be nice ;) I like GNOME so i decided that I want to give something back so I want to learn C and GTK from a GNOME perspective :) Now ... to my question:

sorry, i think you're a bit off-topic. better try irc.gimp.net,
gnomesupport dev forum, etc

> I want to start a console command and be able to read it's output. so i can use the output in my program. Could someone give me an example or point me in the right direction to go. is there and libs for this? (and really ... what does it call that i want to do ??? fork ?)

fork and pipe. better use popen

> Another option to my problem is that i can ping a adress to tell if it is still alive. Not by using "ping" as i want above but with code instead. even if i get an answer to this question (that would be best option i guess) I'm still interested in how to use fork (or what's it called) for other things :)

if you don't want to fork, then grab the ping source code :D

-- 
Benoît Dejean
JID: TazForEver jabber org
http://gdesklets.gnomedesktop.org
http://www.paulla.asso.fr

Attachment: signature.asc
Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=



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