Re: [Vala] regarding GLib.Process.spawn_async_with_pipes



Hi,

I'm trying to write a simple GTK3 front-end for smbpasswd and I'm trying
to use «GLib.Process.spawn_async_with_pipes» based on the «-s» option of
smbpasswd which allows it to use stdin for password prompt. 
How can I send the data to «GLib.Process.spawn_async_with_pipes»' stdin?

You need to set up an IOWatch on the resulting standard_input fd and
check if the app is ready for receiving input; you'll probably also
connect to stdout and stderr to properly interact with the command-line
app.





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