sudo and nautilus
- From: "Mark S. Townsley" <mstownsley gmail com>
- To: nautilus-list gnome org
- Subject: sudo and nautilus
- Date: Fri, 24 Jun 2011 14:35:43 -0700
Hi:
I am using Nautilus file browser (version 2.30.0).
I have written a C++ program, compiled. Part of that use system() C api to execute a bash script. The bash script does
echo "some password" | sudo -S <some executable>
The executable runs fine. But if I run from nautilus, it never gets to call that system() line. I tried creating the bash script dynamically right before system() is called and the script is created. From within the script, I tried to write a file but it never happens. So I know the script is not called.
If I execute the script directly from Nautilus, it works though.
What am I missing? Calling an executable that in turn calls another executable is not allowed in Nautlius?
Thanks for any tips.
Mark
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]