shell-script-pt
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dialog - ajuda


From: xxoin
Subject: Re: dialog - ajuda
Date: Wed, 20 Oct 2004 03:44:59 -0000
User-agent: eGroups-EW/0.82

________ Boa noite. 
 
O que você está querendo é mais ou menos isto (???): 
 
------- idéia -------- idéia --------------- 
#!/bin/bash 
 
dialog --title 'xyz' \ 
        --checklist 'zyx' \ 
        0 0 0 \ 
        opc_1 'hummm' on \ 
        opc_2 'nhem-nhem' on \ 
        opc_3 'hum-hum' on && 
        [ $? -eq 0 ] && 
        dialog --msgbox 'Apagando arquivos...' \ 
        0 0 && \ 
        cat /dev/null > /dir/arquivo.txt && \ 
        exit 
 
------- idéia --------- idéia ------------------ 
 
______ 
Xxoin 
 
 
_________________________________________ 
 
--- Em address@hidden, "Celso Vianna" 
<celso_vianna@y...> escreveu 
> all, 
>  
> No dialog http://www.etfto.gov.br/~celso/modificar.txt gostaria 
de, depois 
> de selecionar, por exemplo o primeiro e o último item, quando 
acionar o 
> botão "ok" fosse apagado os arquivos "teste.txt" e "teste1.txt"; 
como é que 
> intercepto a saída do dialog para executar a operação desejada? 
>  
> Celso 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]