From kde-devel Mon Jun 10 10:18:29 2002 From: Simon Robins Date: Mon, 10 Jun 2002 10:18:29 +0000 To: kde-devel Subject: ioslaves X-MARC-Message: https://marc.info/?l=kde-devel&m=102370411504499 Hi I'm new here so go easy... I had a look in the archives and didn't find a= n=20 answer to my question, but apologies if its been handled before. I wrote a trivial ioslave for KDE 2 which executed arbitrary shell comman= ds.=20 e.g kmd:/ps aux|grep myuser and put the output into whatever document you were using. I've tried running this in konqueror for KDE3 and things aren't working q= uite=20 as expected. A URL such as kmd:/ps seems to send konqueror into a spin never returning= =2E=20 However the ioslave's get method is being called, but it never seems to e= mit=20 its data (Also interestingly this still works in kedit) The same thing happens for URLs such as kmd://blah/foo but not if you put= on a=20 following slash (ie kmd://blah/foo/) I thought initially this was due to some change in the way stat works, (I= =20 didn't have this method overloaded previously) but according to my kdDebu= g=20 output its not being called in these instances. What I would ideally like to do is call commands like this:=20 kmd:ps sort of like the man slave does and receive the URL uninterpreted so a us= er=20 can do things like kmd:/usr/bin/ps without there being too much leaning=20 toothpick syndrome. Anyway some enlightenment on what's going on here would be much appreciat= ed. If not could someone point me to the source code for a simple ioslave whi= ch=20 does this (like kio_man)=20 >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<