[MonoDevelop] Root Access

Darwin Reynoso monouser at gmail.com
Sun Apr 20 12:21:01 EDT 2008


thanks i'll see if it works.

On Sun, Apr 20, 2008 at 12:09 PM, Federico Di Gregorio <fog at initd.org> wrote:
> 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.
>
> _______________________________________________
>  Monodevelop-list mailing list
>  Monodevelop-list at lists.ximian.com
>  http://lists.ximian.com/mailman/listinfo/monodevelop-list
>
>


More information about the Monodevelop-list mailing list