[MonoDevelop] Root Access

Federico Di Gregorio fog at initd.org
Sun Apr 20 12:09:08 EDT 2008

Il giorno dom, 20/04/2008 alle 11.41 -0400, Darwin Reynoso ha scritto:
> Hi,
> does anyone knows how to execute a program with root access.
> this is what i'm doing...
> protected virtual void onErase (object sender, System.EventArgs e)
> 	{
> 		Process pc = new Process();
> 		pc.StartInfo.FileName = "/home/user/bin/usb_pickit";
> 		pc.StartInfo.Arguments = "-e";
> 		pc.StartInfo.RedirectStandardOutput = false;		
> 		pc.Start();
> 	}

What about:

pc.StartInfo.FileName = "/usr/bin/sudo"
pc.StartInfo.Arguments = "/home/user/bin/usb_pickit -e";

Federico Di Gregorio                         http://people.initd.org/fog
DISCLAIMER. If I receive a message from you, you are agreeing that:
 1. I am by definition, "the intended recipient".
 2. All information in the email is mine to do with as I see fit and
 make such financial profit, political mileage, or good joke as it lends
 itself to. In particular, I may quote it on USENET or the WWW.
 3. I may take the contents as representing the views of your company.
 4. This overrides any disclaimer or statement of confidentiality that
 may be included on your message.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Questa =?ISO-8859-1?Q?=E8?= una parte del messaggio
	firmata digitalmente
Url : http://lists.ximian.com/pipermail/monodevelop-list/attachments/20080420/4ad6440a/attachment.bin 

More information about the Monodevelop-list mailing list