开发者

MonoDevelop in Linux -- Terminal Commands

开发者 https://www.devze.com 2022-12-30 04:38 出处:网络
I want to make a C# app in Mono as it\'s the only programming language I\'m mostly comfortable with. Anyway, ATI Drivers on Linux do not have a Fan control feature and therefore the cards to tend to

I want to make a C# app in Mono as it's the only programming language I'm mostly comfortable with.

Anyway, ATI Drivers on Linux do not have a Fan control feature and therefore the cards to tend to heat up. For me I开发者_如何学C prefer to have a cooler card.

What I want to do is run a command such as:

aticonfig --pplib-cmd 'set fanspeed 0 70'

In a application but I the thing is..How can I run that code so it works, I am currently running Ubuntu 10.04, and it does work in the terminal, but I want to implement it into an application.

Thanks


Not having used Mono, I might be wrong, but I assume you could use System.Diagnostics.Process.Start

Possibly something like this

System.Diagnostics.Process.Start("aticonfig", "--pplib-cmd 'set fanspeed 0 70'");
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号