Eric Walstad
eric at ericwalstad.com
Sun Apr 4 19:28:23 EST 2004
On Sunday 04 April 2004 16:25, Jorge Godoy wrote: > On Dom 04 Abr 2004 19:11, Eric Walstad wrote: > > I need to give one of my mod_python apps the ability to run as > > root. [snip] > use a C wrapper to run another Python script or tool > with such privileges. > > Here's one example from the Perl documentation: > > > #define REAL_PATH "/path/to/script" > main(ac, av) > char **av; > { > execv(REAL_PATH, av); > } > > > Here, "/path/to/script" would be either the path to the binary or > to your other Python script. It will pass along all the parameters > it gets in command line, so the result would be the same as if you > ran your script/program as root. > > > Be seeing you, Thank you, Jorge. This was just the lead I was looking for. Best regards, Eric.
|