#!/bin/sh if [ -z $DISPLAY ] then DIALOG=dialog else DIALOG=Xdialog fi $DIALOG --yesno "Забавно, не правда ли?" 0 0