[Gtk-sharp-list] Execute shell command with sudo
gunboxer
gunboxer at gmail.com
Tue Mar 9 00:50:13 EST 2010
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.
More information about the Gtk-sharp-list
mailing list