sudo in c?

Martin Klaffenboeck martin.klaffenboeck at gmx.at
Sun Jun 22 11:15:20 EDT 2003


Am 2003.06.22 15:44 schrieb(en) Reznic Valery:
> When you use popen you can ONLY read from the command's stdout
> or ONLY write to it's stdin.
> I you want both of them (and may be stderr too) you need play with
> fork/exec/dup call's.
> 
> This is not something sudo specific it's pretty general for all
> commands,
> which needs both input and output.

Yes, I found a thing how I can do it with fork and dup, now I'm trying 
to do that.

Thanks for the information.

Martin

-- 
If you've got an idea and need help,
or just need general encouragement,
write me a message. ;-)


More information about the sudo-users mailing list