#!/bin/bash

# Executes a command and prints the output into Konversation.

PORT=$1;
SERVER=$2;
TARGET=$3;
shift;shift;shift;

$@ | while read line; do dcop $PORT Konversation say $SERVER "$TARGET" "$@: $line"; done 
