1 2 3 4 5 6 7 8 9
#!/bin/sh # Prints the KDE version. PORT=$1; SERVER=$2; TARGET=$3; kde-config --version | while read line; do dcop $PORT default say $SERVER "$TARGET" "$line"; done