[Linux-Biella] Problema con dialog

Federico Pistono fppain a gmail.com
Ven 5 Maggio 2006 13:48:12 CEST


On 5/5/06, Paul TT <paultt a bilug.linux.it> wrote:
> Federico Pistono wrote:
> 'zzo dici?
>
> dialog --backtitle "$PGM v$VERSION - $AUTOR $DATE " --title "Menu"
> --menu "$1" 0 0 0 '$WHAT' 2>/tmp/menu.$$
>
> questo lo hai provato?
> anche tu non leggi molto a quanto pare....

Vuoi giocare a chi ha la testa + dura?

Si', ho prvato ANCHE quello e non va.

$ cat test.sh
#!/bin/bash

PGM=`basename $0`
VERSION="0.3"
AUTOR="Me"
DATE="Today"

function window_menu(){
    WHAT=`echo -e $@ | sed -e 's/__/\"/g'`
    dialog --backtitle "$PGM v$VERSION - $AUTOR $DATE " --title "Menu"
--menu "$1" 0 0 0 '$WHAT' 2>/tmp/menu.$
}

function begin() {

    window_menu  "__1__" "__Choose one of the following options__"
"__2__" "__Manage disc space__" "__3__" "__Remove games files from the
disk__" "__4__" "__Search for users__" "__5__" "__Exit program__"
}

begin

Piuttosto che giocare sugli equivoci perche' non provi per favore un
codice completo e mi fai vedere dove sbaglio, almeno non ci saranno
piu' dubbi, no?

Grazie,
--
Federico Pistono   Department of Computer Science - Verona, Italy
http://www.federicopistono.org :: http://pain.altervista.org/flatnukeuwcad/
http://pain.altervista.org :: Linux Registered User #340392

"Just remember....you were a n00b yourself once..."
"Speak for yourself. After my mother re-partitioned her drive and
mounted the smaller one at "/womb" I was compiled from source."


Maggiori informazioni sulla lista Linux