Re: using g_spawn_async_with_pipes
- From: Tristan Van Berkom <vantr touchtunes com>
- To: Jeremy Wilkins <jeb jeremywilkins freeserve co uk>
- Cc: gtk-devel-list gnome org
- Subject: Re: using g_spawn_async_with_pipes
- Date: Tue, 28 Jan 2003 13:04:22 -0500
> I'm currently able to spawn the ssh process fine, but don't seem to be
> grabbing the output. I'm using read() to read from the file descriptor -
> is this correct?
hmmm `read' is always good.... but; the question is;
is the `fd' open with O_NDELAY ? and if so do you
perform `select()' on it before expecting output ?
what does `errno' have to say about it ?
working with pipes can get confusing at times.
Cheers,
-Tristan
who was it that said "Asynchronous input is at the root of
all our race condition problems" ? (I forget ... it was /etc/motd
around here for a while)
Jeremy Wilkins wrote:
>
> Hi,
>
> I'm trying to launch ssh using g_spawn_async_with_pipes. I want my
> program to watch for when it asks for the password, and the enter it
> automatically. Is this possible?
>
> I'm currently able to spawn the ssh process fine, but don't seem to be
> grabbing the output. I'm using read() to read from the file descriptor -
> is this correct?
>
> Any help appreciated.
>
> Jeremy
>
> _______________________________________________
> gtk-devel-list mailing list
> gtk-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]