From kde-linux Tue Aug 11 12:02:30 2009 From: Robin Atwood Date: Tue, 11 Aug 2009 12:02:30 +0000 To: kde-linux Subject: [kde-linux] Executing bash scripts - redux Message-Id: <200908111902.30466.robin () binro ! org> X-MARC-Message: https://marc.info/?l=kde-linux&m=124999223209309 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. TIA -Robin -- ---------------------------------------------------------------------- Robin Atwood. "Ship me somewheres east of Suez, where the best is like the worst, Where there ain't no Ten Commandments an' a man can raise a thirst" from "Mandalay" by Rudyard Kipling ---------------------------------------------------------------------- ___________________________________________________ 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.