Opa, só mais uma coisa, não precisa matar o listen, ele tem parâmetros que servem para controlar o volume, você pode, por exemplo, para desligar o som em 2 horas, colocar "now + 2 hours" no tempo, e "listen -v 0" no comando.
Para outros comandos, veja o listen --help -- Diego "Sphink" Pereyra Em Mon, 23 Apr 2007 17:16:29 -0300 Diego Ernesto Pereyra <[EMAIL PROTECTED]> escreveu: > Use o at, é feito para isso, exatamente. > Se o que você quer é GUI, um script como o seguinte pode ajudar: > (Texto retirado do man at) > > #!/bin/bash > > QUANDO=$(zenity --entry --text " At allows fairly complex time > specifications, extending the POSIX.2 standard. It accepts times of the form > HH:MM to run a job at a specific time of day. (If that time is already > past, > the next day is assumed.) You may also specify midnight, noon, or > teatime (4pm) and you can have a time-of-day suffixed with AM or PM for > running in the morning or the evening. You can > also say what day the job will be run, by giving a date in the form > month-name day with an optional year, or giving a date of the form MMDDYY or > MM/DD/YY or DD.MM.YY. The specification > of a date must follow the specification of the time of day. You > can also give times like now + count time-units, where the time-units can be > minutes, hours, days, or weeks and you can > tell at to run the job today by suffixing the time with today and to > run the job tomorrow by suffixing the time with tomorrow. > > For example, to run a job at 4pm three days from now, you would do at > 4pm + 3 days, to run a job at 10:00am on July 31, you would do at 10am Jul 31 > and to run a job at 1am tomorrow, you > would do at 1am tomorrow. > > Quando executar o comando?" --title "Quando executar o comando?") > COMANDO=$(zenity --entry --text "Que comando executar?" --title "Comando") > at $QUANDO << EOF > $COMANDO > EOF > > > Em Mon, 23 Apr 2007 17:03:40 -0300 > "João Arthur" <[EMAIL PROTECTED]> escreveu: > > > Provavelmente esse "programinha específico" iria rodar o cron por baixo. > > > > On 4/23/07, José Geraldo Gouvêa <[EMAIL PROTECTED]> wrote: > > > > > > Eduardo Kopp Vanuzzi escreveu: > > > > J. Geraldo, > > > > Desligar o computador como um todo é uma solução meio "tiro de canhão > > > para > > > > matar mosca" hehehe... apesar de resolver... > > > > > > > > João, > > > > Eu imaginei que o cron pudesse fazer algo do tipo, mas será que ninguém > > > até > > > > hoje tentou criar um programinha que fizesse algo semelhante ao que tem > > > nos > > > > rádios/televisões mais simples de hoje em dia? :) Imagino que seja > > > simples > > > > até, apesar de não saber programar ao ponto de implementá-lo. Por > > > enquanto, > > > > fico com a solução do cron, mas continuarei minha caçada... > > > > > > > > Obrigado Geraldo e João! > > > > > > > O problema é que o cron também é tiro de canhão. Repare usar o cron é > > > ainda mais complexo que usar o shutdown -h. > > > > > > > > > O ideal seria memso um programinha específico. > > > > > > Jose Geraldo > > > > > > -- > > > Interessado em aprender mais sobre o Ubuntu em português? > > > http://wiki.ubuntu-br.org/ComeceAqui - > > > ubuntu-br mailing list > > > [email protected] > > > https://lists.ubuntu.com/mailman/listinfo/ubuntu-br > > > > > > > > > > > -- > > João Arthur Brunet Monteiro > > Graduação Ciência da Computação > > Grupo de Métodos Formais (GMF) > > www.dsc.ufcg.edu.br/~jarthur > > http://www.gmf.ufcg.edu.br/index.php/DesignWizard > > UFCG-CEEI-DSC > > -- > > Interessado em aprender mais sobre o Ubuntu em português? > > http://wiki.ubuntu-br.org/ComeceAqui - > > ubuntu-br mailing list > > [email protected] > > https://lists.ubuntu.com/mailman/listinfo/ubuntu-br > > -- > Interessado em aprender mais sobre o Ubuntu em português? > http://wiki.ubuntu-br.org/ComeceAqui - > ubuntu-br mailing list > [email protected] > https://lists.ubuntu.com/mailman/listinfo/ubuntu-br -- Interessado em aprender mais sobre o Ubuntu em português? http://wiki.ubuntu-br.org/ComeceAqui - ubuntu-br mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-br

