Re: Beeping the Speaker
On 24 Feb 1998, Roderick Schertler wrote: > On Sat, 21 Feb 1998 11:08:17 +1300 (NZDT), [EMAIL PROTECTED] (Michael > Beattie) said: > > > > My only problem is that echoing the \a twice runs them together to > > sound like one... I would like a double beep, so i used `runq;runq' > > to get a suitable pause in between beeps... If anyone has a better > > idea :) > > perl >/dev/tty1 -we '$| = 1; > print "\a"; > select undef, undef, undef, 0.25; > print "\a"' > > The 0.25 indicates a pause of 0.25 seconds. > Excellent... works perfectly :) Thanks. Michael Beattie ([EMAIL PROTECTED]) --- My cat's eyes look kinda glassy. I think he ate it. --- Debian GNU/Linux Ooohh You are missing out! -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: Beeping the Speaker
On Sat, 21 Feb 1998 11:08:17 +1300 (NZDT), [EMAIL PROTECTED] (Michael Beattie) said: > > My only problem is that echoing the \a twice runs them together to > sound like one... I would like a double beep, so i used `runq;runq' > to get a suitable pause in between beeps... If anyone has a better > idea :) perl >/dev/tty1 -we '$| = 1; print "\a"; select undef, undef, undef, 0.25; print "\a"' The 0.25 indicates a pause of 0.25 seconds. -- Roderick Schertler [EMAIL PROTECTED] -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: Beeping the Speaker
On Tue, 24 Feb 1998, Remco Blaakmeer wrote: > On Mon, 23 Feb 1998, Norbert Veber wrote: > > > On Sun, Feb 22, 1998 at 02:15:46AM +, [EMAIL PROTECTED] wrote: > > > > In bash or sh or ksh - > > > > > > > > echo ^g^g > > > > > > Doesn't work for me. > > > > come on, its not rocket science, echo -e "\a" will do the trick. > > Sure, that does the same as `echo ^g`. The question was how to make two > beeps. Both `echo ^g^g` and `echo -e "\a\a"` give you one beep. > What about: echo -e "\a"; sleep 0; echo -e "\a" ? Wojtek Zabolotny [EMAIL PROTECTED] -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: Beeping the Speaker
On Tue, 24 Feb 1998, Remco Blaakmeer wrote: > On Mon, 23 Feb 1998, Norbert Veber wrote: > > > On Sun, Feb 22, 1998 at 02:15:46AM +, [EMAIL PROTECTED] wrote: > > > > In bash or sh or ksh - > > > > > > > > echo ^g^g > > > > > > Doesn't work for me. > > > > come on, its not rocket science, echo -e "\a" will do the trick. > > Sure, that does the same as `echo ^g`. The question was how to make two > beeps. Both `echo ^g^g` and `echo -e "\a\a"` give you one beep. > Well "echo ^G;sleep 1;echo ^G" works, but the pause is a bit long.. need it to be about 1/3 to 1/2 of a second... just sounds better :) Michael Beattie ([EMAIL PROTECTED]) --- Don't force it, use a bigger hammer. --- Debian GNU/Linux Ooohh You are missing out! -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: Beeping the Speaker
On Mon, 23 Feb 1998, Norbert Veber wrote: > On Sun, Feb 22, 1998 at 02:15:46AM +, [EMAIL PROTECTED] wrote: > > > In bash or sh or ksh - > > > > > > echo ^g^g > > > > Doesn't work for me. > > come on, its not rocket science, echo -e "\a" will do the trick. Sure, that does the same as `echo ^g`. The question was how to make two beeps. Both `echo ^g^g` and `echo -e "\a\a"` give you one beep. Remco -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: Beeping the Speaker
On Sun, Feb 22, 1998 at 02:15:46AM +, [EMAIL PROTECTED] wrote: > > In bash or sh or ksh - > > > > echo ^g^g > > Doesn't work for me. come on, its not rocket science, echo -e "\a" will do the trick. -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: Beeping the Speaker
> In bash or sh or ksh - > > echo ^g^g Doesn't work for me. -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: Beeping the Speaker
On 22 Feb 1998, Carey Evans wrote: > [EMAIL PROTECTED] (Michael Beattie) writes: > > > Is it at all possible to beep the PC Speaker via bash? or perl... or > > whatever? > > > > What I want to do is set up my ip-up script, so that fetchmail is run from > > it, and there is some sort of notification when it is complete.. i.e. a > > double beep or something. > > I put this in my ip-up: > > /usr/bin/bplay /usr/local/share/ppp/interweb.wav > > where bplay is from the bplay package, and interweb.wav is a Babylon 5 > sample I downloaded from somewhere ("Commencing Interweb Link", from > `A Spider in the Web' IIRC). > > You need a sound card working for this, of course. > H.. that is another answer :) Michael Beattie ([EMAIL PROTECTED]) --- WinErr: 004 Erroneous error - Nothing is wrong --- Debian GNU/Linux Ooohh You are missing out! -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: Beeping the Speaker
[EMAIL PROTECTED] (Michael Beattie) writes: > Is it at all possible to beep the PC Speaker via bash? or perl... or > whatever? > > What I want to do is set up my ip-up script, so that fetchmail is run from > it, and there is some sort of notification when it is complete.. i.e. a > double beep or something. I put this in my ip-up: /usr/bin/bplay /usr/local/share/ppp/interweb.wav where bplay is from the bplay package, and interweb.wav is a Babylon 5 sample I downloaded from somewhere ("Commencing Interweb Link", from `A Spider in the Web' IIRC). You need a sound card working for this, of course. -- Carey Evans http://home.clear.net.nz/pages/c.evans/ GNU GPL: "The Source will be with you... always." -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: Beeping the Speaker
On Sat, 21 Feb 1998, Michael Beattie wrote: > Is it at all possible to beep the PC Speaker via bash? or perl... or > whatever? > > What I want to do is set up my ip-up script, so that fetchmail is run from > it, and there is some sort of notification when it is complete.. i.e. a > double beep or something. > Thanks for all the reply's, I have found a solution `echo CTRL-V CTRL-G' works, as does `echo -e "\a"' but when run in ip-up, they must be redirected to a tty... i.e `echo -e "\a" > /dev/tty11' My only problem is that echoing the \a twice runs them together to sound like one... I would like a double beep, so i used `runq;runq' to get a suitable pause in between beeps... If anyone has a better idea :) I guess it's okay like that if you use queue_only (smail), you kind of need to deliver mail that arrives via fetchmail. :) Thank you again for any help recieved... Michael Beattie ([EMAIL PROTECTED]) --- If NT is the answer, you didn't understand the question. (NOTE: Stolen sig) --- Debian GNU/Linux Ooohh You are missing out! -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: Beeping the Speaker
When Michael Beattie wrote, I replied: In bash or sh or ksh - echo ^g^g in perl, print "\007\007"; HTH > > Is it at all possible to beep the PC Speaker via bash? or perl... or > whatever? > > What I want to do is set up my ip-up script, so that fetchmail is run from > it, and there is some sort of notification when it is complete.. i.e. a > double beep or something. > > Thanks, >Michael Beattie ([EMAIL PROTECTED]) > > --- > My cat's eyes look kinda glassy. I think he ate it. > --- > Debian GNU/Linux Ooohh You are missing out! > > -- > TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to > [EMAIL PROTECTED] . > Trouble? e-mail to [EMAIL PROTECTED] . -- - Ralph Winslow [EMAIL PROTECTED] Mary bought a pair of skates upon the ice to frisk now wasn't that a crazy way her sweet young *? -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: Beeping the Speaker
> >Is it at all possible to beep the PC Speaker via bash? or perl... or >whatever? > > Use `echo ^G' in sh, where you get the ^G by typing Control+V > Control+G (at the prompt) or Control+Q Control+G (in emacs) or god > knows what (in vi). Not only god knows. I know it too :) In vi it is just Control+V Control+G, like in the shell. Eric -- E.L. Meijer ([EMAIL PROTECTED]) | tel. office +31 40 2472189 Eindhoven Univ. of Technology | tel. lab. +31 40 2475032 Lab. for Catalysis and Inorg. Chem. (TAK) | tel. fax+31 40 2455054 -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: Beeping the Speaker
Is it at all possible to beep the PC Speaker via bash? or perl... or whatever? Use `echo ^G' in sh, where you get the ^G by typing Control+V Control+G (at the prompt) or Control+Q Control+G (in emacs) or god knows what (in vi). -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Beeping the Speaker
Is it at all possible to beep the PC Speaker via bash? or perl... or whatever? What I want to do is set up my ip-up script, so that fetchmail is run from it, and there is some sort of notification when it is complete.. i.e. a double beep or something. Thanks, Michael Beattie ([EMAIL PROTECTED]) --- My cat's eyes look kinda glassy. I think he ate it. --- Debian GNU/Linux Ooohh You are missing out! -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .