Re: Basic Question (of execv)
- From: Pablo Fischer <exilion yifan net>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Basic Question (of execv)
- Date: 24 Oct 2002 18:40:52 -0500
Thanks!!
Thats the function that I need.
Also.. thanks for the fopen & fclose!
Paul Fischer
El jue, 24-10-2002 a las 18:23, Brett Nash escribió:
void Agenda_crear(GtkWidget *objeto, gpointer data) {
g_print("Creando la agenda");
execlp("touch /home/unmada/test.pfs",NULL);
}
You probably want to use:
system("touch /home/unmada/test.pfs");
Otherwise your exec arguments should be:
exec("touch","touch","/home/unmada/test.pfs",NULL);
Remember exec only returns on error - so the next line after exec
should always be error handling.
nash
--
Brett Nash <nash nash nu>
Sometimes it's better to light a flamethrower than curse the darkness.
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]