using g_spawn_async_with_pipes



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




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