Is it possible for an application (written in Mono C#) to run a console command?
- by Razick
I am wondering if a Mono C# application can somehow run a terminal command. For example, could the user give the program his or her password and then have the application run
sudo apt-get install application-name
(console requests password)
password
(console requests confirmation)
y
Preferably, this would be done without actually opening a terminal visible to the user, so that the application could provide the necessary feedback and manage the whole operation cleanly with as little user interaction as possible.
Is there a way to do that? Let me know if clarification is needed. Thank you!