Hi all! I create service with the following code:
ProcessStartInfo p = new ProcessStartInfo(); p.FileName = "7za"; p.Arguments = "a " + f7zfullpath + ".working " + fxmlfullpath + " -m0=PPMd -mx9"; p.WindowStyle = ProcessWindowStyle.Hidden; Process x = Process.Start(p); x.WaitForExit(); The result of this execution should be creation the 7zip archive file, but i got that this command return error because of it have no permissions to write files in selected path, so i want to execute given command with "sudo"... how can i do it? by the way i start my service with "sudo" : "sudo mono-service2 XMLService.exe" but any ways have no permissions... -- View this message in context: http://n4.nabble.com/Execute-shell-command-with-sudo-tp1585558p1585558.html Sent from the Mono - Gtk# mailing list archive at Nabble.com. _______________________________________________ Gtk-sharp-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
