|
From: | Ivan lopes |
Subject: | Re: [shell-script] gnome-terminal e trap |
Date: | Tue, 2 May 2017 14:50:10 -0300 |
Na função, experimente fazer:cleanup{.........}; export -f cleanupEm 30 de abr de 2017 16:28, "Ivan lopes address@hidden [shell-script]" <address@hidden.br > escreveu:Caros estou tentando executar umcomando quando fecho o gnome terminal, mas não estou conseguindo$ cat a.shcleanup (){echo martinho ...exit 0}trap cleanup SIGINT SIGTERMgnome-terminal &poderiam dar algumas dicasabraços!Ivan
[Prev in Thread] Current Thread [Next in Thread]
- Re: [shell-script] gnome-terminal e trap, Julio C. Neves, 2017/05/01
- Re: [shell-script] gnome-terminal e trap, Ivan lopes <=
- Prev by Date: Re: [shell-script] Imprimir sequência de números randomicamente, SEM REPETIÇÃO
- Next by Date: Re: [shell-script] Imprimir sequência de números randomicamente, SEM REPETIÇÃO
- Previous by thread: Re: [shell-script] gnome-terminal e trap
- Next by thread: RE: [shell-script] Imprimir sequência de números randomicamente, SEM REPETIÇÃO
- Index(es):