O'Reilly logo

Tcl 8.5 Network Programming by Piotr Beltowski, Wojciech Kocjan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding autoupdate to application

Very often we will want our clients to be able to update automatically, especially if clients are run on large number of computers and / or in different locations.

To make our application automatically update itself, we need to use a simple but efficient pattern for automatic updates. The approach is exactly the same as described in Chapter 3, Tcl Standalone Binaries.

All that is needed is to perform the following steps:

  • Check if an updated version of the binary is available; if not, then download it
  • Write the binary as a temporary file with the specified filename
  • Run the temporary binary
  • As the temporary binary, overwrite the actual binary and exit
  • As the temporary binary, run the actual binary, which is now updated ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required