Velvet Star Monitor

Standout celebrity highlights with iconic style.

news

Is it possible for an application (written in Mono C#) to run a console command? [closed]

Writer Andrew Henderson

I am wondering if a Mono C# application running in Ubuntu 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? If so, how? Let me know if clarification is needed. Thank you!

8 Reset to default