You are not logged in.
Hi,
I am currently struggling to figure out how to start a external program e.g. pacman from gtk program and interact with it in my application like when it asks for any confirmation, I should be able to reply back to pacman from my application. In case I am not clear please let me know?
Cheers ![]()
Keep Calm, And Enjoy Life ![]()
Offline
You might want to look into the popen(2) call or into GLib's higher level GSubprocess module.
In any case, you want to write on stdin once a confirmation is requested.
Alternatively, if you just want to bypass the confirmation questions of pacman, just use --noconfirm.
Offline
You might want to look into the popen(2) call or into GLib's higher level GSubprocess module.
In any case, you want to write on stdin once a confirmation is requested.Alternatively, if you just want to bypass the confirmation questions of pacman, just use --noconfirm.
Thanks SahibBommelig for your reply. Could you point me to a tutorial on GSubprocess. I need to both read and write into the buffer asynchronously, which is not possible in popen.
Cheers ![]()
Last edited by Debasish Patra (2014-12-19 21:30:53)
Keep Calm, And Enjoy Life ![]()
Offline