User Tools

Site Tools


macros:example:shutdown

Example

System - Shutdown

by: Marc Heimendinger
published: March 2018
description: Shuts Titan down.
remarks: This affects only the Titan 'surface' program which is shut down without prompt. The Titan Server is not affected and keeps running.

functions

Code

shutdown.xml
<?xml version="1.0" encoding="utf-8"?>
<avolites.macros xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Avolites.Menus.xsd">
  <!-- Shuts down the console (without prompt !). Marc Heimendinger 11/03/2018 -->
  <macro id="Avolites.Macros.ShutDown" name="Shutdown">
    <description>Shuts down the console (without prompt !).</description>
    <sequence>
      <step pause="0.01">Titan.Shutdown()</step>
    </sequence>
  </macro>
</avolites.macros>

Explanation

This explains the functional steps within the sequence. For all the other XML details please refer to Formats and syntax

This simply applies the function Titan.Shutdown() whci immediately - and without prompt - shuts Titan down. however, only the 'Surface' program is affected (e.g. TitanOne, Titan Simulator etc) - Titan Server is not affected and keeps running in the background.

How to use it

You could leave a comment if you were logged in.
macros/example/shutdown.txt · Last modified: 2019/04/27 16:54 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki