Hi,

I'm basically trying to run a "SwitchUser" linux command before the
Synergy session setup. As the "-n" option for Synergy commandline
doesn't work, I'm trying a workaround of switching the user and start
the Synergy ccm session. In order to do that I tried using the
Launcher.launch() cmd. As "su" linux command expects password as
input, I plan to provide that information from the plugin. I'm trying
to provide the password information in inputstream pass it to the
launch(). This is not working for me. I'm using the following piece of
code. Can any one help me to know if this fine or provide a sample
code usage for inputstream to be used. And help to let me know if any
one has already tried this API?

ProcStarter proc = launcher.launch();
                        proc.cmds(commands);
                        proc.masks(mask);
                        proc.envs(env);
                        proc.stdin(in);
                        proc.stdout(buildListener.getLogger());
                        result = proc.join();

Reply via email to