Enlightenment CVS committal Author : onefang Project : e17 Module : libs/ecore
Dir : e17/libs/ecore/examples Modified Files: exe_example.c Log Message: Updated to reflect API change. =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/examples/exe_example.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -3 -r1.6 -r1.7 --- exe_example.c 2 Jan 2006 07:44:51 -0000 1.6 +++ exe_example.c 4 Jan 2006 20:29:28 -0000 1.7 @@ -120,12 +120,12 @@ then = ecore_time_get(); while ((length = read(fd, buf, 1024)) > 0) - ecore_exe_pipe_write(exe0, buf, length); + ecore_exe_send(exe0, buf, length); close(fd); } } /* FIXME: Fuckit, neither of these will actually cause /bin/cat to shut down. What the fuck does it take? */ - ecore_exe_pipe_write(exe0, "\004", 1); /* Send an EOF. */ + ecore_exe_send(exe0, "\004", 1); /* Send an EOF. */ ecore_exe_pipe_write_close(exe0); /* /bin/cat should stop when it's stdin closes. */ } @@ -151,8 +151,8 @@ if (exe1) { exe_count++; - ecore_exe_pipe_write(exe1, "ls\n", 3); - ecore_exe_pipe_write(exe1, "exit\n", 5); + ecore_exe_send(exe1, "ls\n", 3); + ecore_exe_send(exe1, "exit\n", 5); } exe2 = ecore_exe_pipe_run("/usr/bin/find . -print", @@ -166,7 +166,7 @@ if (exe3) { exe_count++; - ecore_exe_pipe_write(exe3, "ls\n", 3); + ecore_exe_send(exe3, "ls\n", 3); } printf(" [*] exe0 = %p (/bin/uname -a)\n", exe0); ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs