This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Pipe script output to KDE apps like kate?

Tags: None
(comma "," separated)
User avatar
pinguin74
Registered Member
Posts
72
Karma
0
OS
Hi there,

can you pipe text output to KDE apps like kate?

I´d like to pipe some grep output to e.g. kate or kwrite, but does not work.

When I do cat /var/log/audit/audit.log | grep apparmor | grep ALLOWED | kwrite the kwrite window stays empty....

Doesn´t KDE support this?

I´d like to pipe stuff to kwrite, because it is easier for me to work with the output in kwrite that in the konsole.

Thanks.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Unfortunately KWrite does not support pipes as far as I am aware.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
wolfi323
Registered Member
Posts
1129
Karma
11
OS
bcooksley wrote:Unfortunately KWrite does not support pipes as far as I am aware.

It does support reading the text from stdin though (with the "--stdin" command line option).

So this should work as intended: (provided you have read access to /var/log/audit/audit.log of course, which you normally won't have as user... ;) )
Code: Select all
 cat /var/log/audit/audit.log | grep apparmor | grep ALLOWED | kwrite --stdin


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]