Community
Participate
Working Groups
The attached code addes linux process subsystem using ssh protocol
Created attachment 51285 [details] org.eclipse.rse.subsystems.processes.ssh.linux plugin zip archive Legal Message: I, Yufen Kuo, declare that I developed attached code from scratch, without referencing any 3rd party materials except material licensed under the EPL. {I am authorized by my employer to make this contribution under the EPL.}
I have requested DSDP PMC approval for the contribution.
The PMC has approved, vote is recorded in http://dev.eclipse.org/mhonarc/lists/dsdp-pmc/msg00343.html Dave please go forward, do an initial code review and create a Contribution Questionnaire.
Note that the deadline for all legal documentation for our release has already passed, so we will not be able to put this into RSE 1.0. Please do start the Contribution Questionnaire process right away, though.
Patch was submitted past the IP review cutoff. Will integrate after R1.
Created attachment 54030 [details] org.eclipse.rse.subsystems.processs.ssh.linux plugin archive fixed the copyright
Created attachment 54032 [details] org.eclipse.rse.subsystems.processs.ssh.linux plugin archive
Created attachment 54033 [details] org.eclipse.rse.subsystems.processs.ssh.linux plugin archive
Created attachment 54034 [details] org.eclipse.rse.subsystems.processs.ssh.linux plugin archive
Created attachment 54050 [details] Processes subsystem for SSH added "and others" to IBM copyright statements.
Martin -- I'm reassigning this to you now that its been submitted to the EMO.
Created attachment 54117 [details] updated code that uses IHostShell instead of Jsch ChannelExec This attachment contains the updated code that uses IHostShell to execute the command instead of Jsch ChannelExec. I tried to use HostShellProcessAdapter.waitFor() function to wait for comand finishes, but the hostShell.isActive() always return true for me.
Dave - looks like you are handling this now. When the ssh processes subsystem is committed, we should look at using the RemoteCommandOperation code for it (see bug 164959)
This is now approved as per https://dev.eclipse.org/ipzilla/show_bug.cgi?id=1060 Going to commit for M5. I'm going to rename the plugin to org.eclipse.rse.subsystems.processes.shell.linux since it's using any contributed IHostShell now and does not depend on ssh. I'm also going to rename the package to org.eclipse.rse.internal.subsystems.processes.shell.linux and some elements to LinuxShellProcessResources.properties LinuxShellProcessAdapter.java LinuxShellProcessSubSystemConfiguration.java since I don't think we want to make the implementation official API. Comments regarding this plan?
A first version has been integrated with TM I20070221-1831. The org.eclipse.rse.subsystems.processes.shell.linux plugin is part of the Core feature. The Subsystem is registered against the "Linux" systemType by default. Please try it out!
Tried it with both dstore.shells and ssh.shells, and they're both looking good. Both are a bit slow compared to using dstore.processes, with ssh.shells a bit slower than dstore.shells.
Verified also with I20070223-0730 on Linux. This works awsome now, with both dstore and (more important!) ssh. I can now see the processes on build.eclipse.org through ssh! It's painfully slow (bug 175300), but it works. Even killing works. And what's more, extenders should be easily able to run this over telnet, rlogin or whatever protocol, and use whatever commandline commands they have to get process info.
[target cleanup] 2.0 M5 was the original target milestone for this bug