User Tools

Site Tools


wiki:scripts

Scripts

Introduction

A scripting language or script language is a programming language that supports the writing of scripts, programs written for a software environment that automate the execution of tasks which could alternatively be executed one-by-one by a human operator. Environments that can be automated through scripting include software applications, web pages within a web browser, the shells of operating systems, and several general purpose and domain-specific languages such as those for embedded systems.
Scripts can be written and executed “on-the-fly”, without explicit compile and link steps; they are typically created or modified by the person executing them.
The term script is typically reserved for small programs (up to a few thousand lines of code).

Source: http://en.wikipedia.org/wiki/Scripting_language

Add New Script

Before adding a script, you have to ensure that you have added at least one box and one script category.

How It Works

Script process is very close to a game server (See: Game Servers).

Note: Scripts do not support multi-IP. The default box IP will be used.

  • A script could be linked to a group. If you do so, all clients of this group will be able to launch the script.
  • Like a server, a script is linked to a box. Once validated, the box cannot be changed.
  • File Name is the full name of the script file.
  • Start Command is the command used to launch the script.
    • Usually, the syntax is:
      ./{script}

      or

      sh {script}

      or

      bash {script}
  • Exec Mode is the execution type. There are two types of scripts, Non-Interactive and Interactive.
    • An interactive script can be started, stopped and also receive commands via an integrated console.
    • A non-interactive script can only be launched (you can also monitor this one via a console).
    • Once launched, a non-interactive script is autonomous and will work until it dies.
    • Both types are using Screen http://en.wikipedia.org/wiki/GNU_Screen
wiki/scripts.txt · Last modified: 2016/05/18 18:41 (external edit)