Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Execute console commands, show output in console view
Execute console commands, show output in console view [message #490090] Wed, 07 October 2009 09:46 Go to next message
Vitaliy Volevach is currently offline Vitaliy VolevachFriend
Messages: 13
Registered: August 2009
Junior Member
Hello,

I'm using eclipse 3.4.2 on linux x64. In my plugin I want to execute
some linux console commands/scripts and show the output in the eclipse
console view.
For me it is also important that the shell from which eclipse was
started is used for input as there are some environment variables set I
want to use.
So, how can I do it?

Regards
Vitaliy
Re: Execute console commands, show output in console view [message #491594 is a reply to message #490090] Thu, 15 October 2009 08:00 Go to previous message
Ravi  is currently offline Ravi Friend
Messages: 27
Registered: July 2009
Junior Member
I am afraid you can't get the shell from which the eclipse is launched. Eclipse runs in JVM and so it isn't aware how is it lauched (AFIAK). You could always run Runtime.getRuntime().exec to execute system command. Write a script that will do the environment setup and call it before launching your custom script. Hope this helps

Thanks,
Ravi
Previous Topic:My osgi.framework.extensions got deleted from the config.ini by eclipse
Next Topic:API to find whether user has chosen to delete contents while deleting the project
Goto Forum:
  


Current Time: Fri Apr 19 00:56:21 GMT 2024

Powered by FUDForum. Page generated in 0.02641 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top