[kde-linux] Executing bash scripts - redux
James Richard Tyrer
tyrerj at acm.org
Wed Aug 12 09:41:31 UTC 2009
Robin Atwood wrote:
> About 18 months ago you guys helped me with an KDE3 app I developed where I
> needed to execute and capture the output of bash init scripts:
> http://lists.kde.org/?l=kde-devel&m=120488838806612&w=2
>
> Now I have updated it to KDE4 and currently have an embedded konsole part
> using code copied from the kateconsole plugin. What I have working is a shell
> made by "TerminalInterface::showShellInDir()" and I send it commands with the
> "sendInput()" method. This works but I don't want the user to have access to
> the shell prompt, what I need is a read-only shell that only displays the
> output of the commands. I tried
> "startProgram( "/bin/sh", script )" but then the widget just closes. Anybody
> know the trick to this? I know KDevelop has something like this but doesn't
> seem to use the TerminalInterface when I searched.
>
There seems to be something very wrong with the website, but there is
corresponding documentation pages for 4.x:
http://api.kde.org/4.x-api/kdelibs-apidocs/interfaces/html/classTerminalInterface.html
--
James Tyrer
Linux (mostly) From Scratch
More information about the kde-linux
mailing list