#!/bin/bash

BEFEHL=$(zenity --list \
  --title="Skript wählen" \
  --column="Skript" --column="Beschreibung" \
    backup.sh "Backup erstellen" \
    uptime "Uptime ermitteln" )

PARAM=""
if [ "$BEFEHL" = backup.sh ]; then
        PARAM=$(zenity --entry \
        --title="Datum" \
        --text="Geben Sie das Datum ein:" \
        --entry-text "01.02.2012" )
fi

ssh tim@example.com "$BEFEHL $PARAM"