03/18/2005

Domino server Broadcast command.

Category
Bookmark : del.icio.us  Technorati  Digg This  Add To Furl  Add To YahooMyWeb  Add To Reddit  Add To NewsVine 


As a developer, informing other users that "my" development server is going to be re-booted is probably one of the last things I think about before restarting Domino. If they want to use "my" server they'll have to live with it occasionally crashing as I'm testing code, or re-booting to change some INI parameter, or whatever.......

An easy way to give them at least a bit of notice is to use the server console command Broadcast to let them know. That's really only a half-hearted attempt to be honest. The message appears on the message bar at the bottom of the Notes client and can easily be missed. So, whilst reading blogs and generally surfing for things Domino I stumbled across an item (read either "undocumented feature" or "something I didn't know) that is much improved on this. It's the Broadcast console command!

"What" you may say "is the difference?". Well, it's the prefix of the "message" portion. The command structure is:

Broadcast "The server is about to be re-started." ["user"]

If you omit the ["user"] user name then it goes to everyone (sorry, teaching grandma to suck eggs - I know). However, if you use

Broadcast "(!)The server is about to be re-started." ["user"]

then connected users will actually get a message box appear. They can't say they didn't see that!

P.S. I've tried it on a couple of R6 release servers and clients and all is OK. Having just tries it on an R5.0.4a server and client combination it didn't work so be aware!!  

P.P.S. Whoever it was that had this on their site, let me know so I can give the recognition due!!!!