[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-linux
Subject: Re: [kde-linux] Executing bash scripts - redux
From: James Richard Tyrer <tyrerj () acm ! org>
Date: 2009-08-12 9:41:31
Message-ID: 4A828E4B.2030303 () acm ! org
[Download RAW message or body]
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
___________________________________________________
This message is from the kde-linux mailing list.
Account management: https://mail.kde.org/mailman/listinfo/kde-linux.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic