Originally Posted by scobiej
I appreciate this may be a security risk, but I cannot see a dcop call in konsole for actually accessing what is on the screen (in the buffer). I'd like to be able to direct a command to the konsole, which you can do, and scrape the results off so I can do other actions based on this output. I cannot do this directly using the running applications in that session.
Is there any way?
The obvious way would be to use a file to communicate with the parent process. I haven't konsole installed so I can't test, but if you have the means to launch "a given command" via dcop my guess is that you could do something like:
# My bash script
dcop "my dcop path" "a given command > ~/ktmpfile 2>&1"
# or however dcop is used in this case, I hope you get the idea
# do whatever else
# continue with the stuff that needs the konsole output, you can
# get if from ~/ktmpfile if everything went ok
It's just an idea that might or might not be viable. But it's worth a try, I guess.