Calling system() from a GTK+ callback
- From: "David C. Hoos, Sr." <david c hoos sr ada95 com>
- To: "GTK List" <gtk-list gnome org>
- Subject: Calling system() from a GTK+ callback
- Date: Thu, 19 Oct 2000 13:07:09 -0500
Hi all,
Is there some limitation on calling the C runtime library function
int system (const char * string) from a GTK+ callback?
I am trying to issue a call of the form
system ("/usr/bin/rsh some-host 'some-command with arguments' >
<some-file-on-remote-host &");
I want the standard output of the remotely-started program to be redirected
to
the file, and for control to return immediately to the callback function
which
calls "system."
The command works when issued from a simple C program (not a GTK+
program), but the call "hangs" if made from a GTK+ callback function.
Thanks for any illumination on this subject.
P.S. I've also tried more elaborate schemes with
fork/exec, with similar results.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]