Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#31 How to run Install API as a non-root or sudo user

open
nobody
5
2012-11-27
2012-11-27
Satish
No

We tried to install InstallJammer API as non-root user.

Alternate option we found was to use \'sudo\'.

Sudo does work fine on console mode but does not work in GUI mode.

Please let me know, how can I tell the Install Jammer to build an application to allow non-root user or the sudo user atleast.

Approach1: I used \"Execute External Program\" action and tried to run \"sudo cp ./bashrc /etc/bashrc\" - this works in Console mode not in Gui Mode.
Approach2: Tried to use \"Execute script\" action and tried \"sudo file copy ./bashrc /etc/bashrc\" - does not work in GUI mode.

Please kindly help me to resolve this. Cant we use sudo command in tcl script.
If i try to execute a sudo command inn tclsh it works!!

my contact mail id is satsbmp111@gmail.com.

Discussion