[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

reading gzipped files on the fly (partly solved)



Hello,

I have asked some time ago, how can I read gzipped files on the fly
with konqueror.

I have solved the problem by using the following shell script (call it
kgz) for the mime type application/x-gzip:

   #!/bin/bash

   DATE=`date +%s`
   BASE=`basename $1`
   TARGET=/tmp/$BASE.$DATE

   gunzip -c $1 > $TARGET

   kfmclient exec $TARGET


The disadvantage clearly is the resulting garbage in the /tmp
directory. Not a real problem thanks to tmpreaper. Any comments are
welcome.

Armin



Reply to: