Re: [Vala] regarding GLib.Process.spawn_async_with_pipes
- From: Jens Georg <mail jensge org>
- To: vala-list gnome org
- Subject: Re: [Vala] regarding GLib.Process.spawn_async_with_pipes
- Date: Tue, 13 Mar 2012 11:04:04 +0100
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]