Play Beep when process completes

Post Reply
Christopher Kernahan
Community Contributor
Posts: 147
Joined: Mon Nov 29, 2010 6:30 pm
OLAP Product: Cognos TM1
Version: 10.1
Excel Version: Office 2010

Play Beep when process completes

Post by Christopher Kernahan »

[Admins - probably belongs in "potentially, maybe, sort of" useful code forum]

I've been developing with a lot of long running TIs and trying to multitask in between, so in order to alert me when a process has finished with a sound, I put this in the Epilog.

Code: Select all

#===================================================================#
# Play sound to alert when process is completed
#===================================================================#

ExecuteCommand( 'D:\TM1\_Scripts\beep.bat', 0 );
The .bat file is;

Code: Select all

@echo off
echo •
You can create the beep.bat file by opening Command Prompt and typing the following in;

copy con beep.bat [return]
[ctrl-G][ctrl-Z][return]

See http://www.wikihow.com/Make-CMD-Beep for full walkthrough.
David Usherwood
Site Admin
Posts: 1458
Joined: Wed May 28, 2008 9:09 am

Re: Play Beep when process completes

Post by David Usherwood »

Errr....
TIs run on the server. I'm thinking in many situations that the beep will be triggered in a server room where no-one can hear it. What about email (using sendemail), sms, or instant messaging?
EvgenyT
Community Contributor
Posts: 324
Joined: Mon Jul 02, 2012 9:39 pm
OLAP Product: TM1
Version: PAL 2.0.8
Excel Version: 2016
Location: Sydney, Australia

Re: Play Beep when process completes

Post by EvgenyT »

Hi CK,

Good idea, thanks for sharing. How about a txt message alert to your smartphone :shock: :shock: :shock: :D :D :D :geek: :geek: :geek: :?: :?: :?: :!: :!: :!:
rmackenzie
MVP
Posts: 733
Joined: Wed May 14, 2008 11:06 pm

Re: Play Beep when process completes

Post by rmackenzie »

EvgenyT wrote:Good idea, thanks for sharing. How about a txt message alert to your smartphone
This is much easier than some people might think - but very hard to find it for free. You need to engage the services of an SMS gateway and then you can just send e-mails from a TI (check numerous forum posts on this topic) that will result in a text message via the gateway. Here is an Aussie one that is 7c a pop. NB I've nothing to do with them but it seems relatively inexpensive. Forum members who are part of organisations with corporate accounts might want to check if they have a gateway already as part of their corporate account.
Robin Mackenzie
Christopher Kernahan
Community Contributor
Posts: 147
Joined: Mon Nov 29, 2010 6:30 pm
OLAP Product: Cognos TM1
Version: 10.1
Excel Version: Office 2010

Re: Play Beep when process completes

Post by Christopher Kernahan »

Errr....
TIs run on the server.
Developing on my local machine, I should have said.
Andy Key
MVP
Posts: 352
Joined: Wed May 14, 2008 1:37 pm
OLAP Product: TM1
Version: 2.5 to PA
Excel Version: Lots
Location: Sydney
Contact:

Re: Play Beep when process completes

Post by Andy Key »

Ctrl-G eh? Takes me back to my teletype days when you used to get a picture of a bell on the G key, and pressing Ctrl-G actually rang a real mechanical bell inside the machine. None of your pale imitation electronic beeps. After all, if Ctrl-G was supposed to beep the ASCII description for Code 7 would have been BEP rather than BEL.

Now where's that bag of Werther's Originals?
Andy Key
Christopher Kernahan
Community Contributor
Posts: 147
Joined: Mon Nov 29, 2010 6:30 pm
OLAP Product: Cognos TM1
Version: 10.1
Excel Version: Office 2010

Re: Play Beep when process completes

Post by Christopher Kernahan »

Takes me back to my teletype days
Come along Sir, the nice men here are going to take you home. There there, don't forget your slippers.
User avatar
USA11SF
Posts: 5
Joined: Wed May 21, 2008 4:57 am
OLAP Product: TM1
Version: 10.2.2 FP2
Excel Version: Excel 10
Location: Toronto NSW Australia

Re: Play Beep when process completes

Post by USA11SF »

...now now youngster....I was working teletypes in the early 60's in Taiwan and Viet Nam...and could type 80WPM in the blind....error free...including bell ringing for critsit messages....and then to IBM in 1969...and TM1 in 1991....no slippers yet....


Maligayang Pasko! 새해 복 많이 받으세요
新年好!
Soldier, Sailor, Airman, Marine <<<)
Post Reply