TACL

A Wikipédiából, a szabad enciklopédiából

A TACL (azaz Tandem Advanced Command Language) a Tandem Computers nagyszámítógépeiben használt script programozási nyelv. TACL egy parancsértelmező (angolul shell) is egyben.

A Tandem számítógépeket eredetileg a kaliforniai Cupertino-beli Tandem Computers, Inc. tervezte és árusította. Ezek voltak az első kereskedelemben is elérhető párhuzamos feldolgozást alkalmazó számítógépek, melyeket eredetileg "miniszámítógép" névvel illettek.


A szócikk egy része még lefordítandó. Segíts te is a fordításban!

Tandem's strategy was the emerging concept of "continuous availability" that relied on mirrored disks, their controllers and software, and a well engineered operating system (Guardian, and later NonStop Kernel or NSK) to ensure continuous application availability by ensuring the system could survive any single point of hardware failure. The company was bought out in 1999 by Compaq Computers, and several years later by Hewlett Packard Computers. Today they are known as "HP Nonstop", see below link to the new HP Integrity NonStop Blade systems:

http://h20223.www2.hp.com/nonstopcomputing/cache/595857-0-0-224-121.html

Many computer systems that were produced after the Tandem NonStop platform relied on some form of redundancy (or HOT backup) and a "failover" scheme to continue running. On the Tandem NonStop, however, each CPU performs its own work and may contain a dormant "backup" process for another CPU. Each pair of CPUs, 0 and 1 for example, share hardware ownership of controllers and disk drives. The drives are not REDUNDANT. Writes to the disk pair are performed on both the primary and backup drives. Reads, however, take advantage of which head on which drive is closer to the information and choose that drive onto which to perform the read. For example if cpu 0 fails, then cpu 1 takes over ownership of a disk drive, providing continuous availability to that data. A primary process that is running may be given a backup process, which receives checkpoint information. If the primary process fails, through whatever reason, the backup process takes over, that backup process may spawn its own backup. This is what earned them the name NonStop, since application programs can be fault-tolerant. This makes them very attractive for their customers, because of their ability for continuous availability, or being NonStop. These systems are also known for handling very high numbers of transactions per second, which is very useful for banks and stock exchanges.

http://docs.hp.com/en/NSGSeries.html

The paragraph above describes the philosophy behind the design of the hardware and the software. Upon that NSK platform there are two programming languages at least - TAL as the compiled language, and TACL as the interpreted language. NSK has compilers for most useful languages too. TAL is rumoured to be about to be deprecated, but TACL remains as the default scripting language on these machines. HP provide a Korn-based shell command interface also these days, but it does not offer all that TACL does for NSK sysadmins - for instance, the netstat command has not been implemented. TACL builtins reflect the multi-CPU nature of NSK, and there probably isn't much more to say than that - if you fully understand all the TACL builtins then you are probably well on the way to understanding the NSK.

A TACL továbbra is az a script nyelv, ami a Hewlett Packard NonStop szervereken használatos. A NonStop szerverek továbbra is a nagy bankok, kaszinók kereskedelmi cégek, telefon társaságok, e-mail rendszerek és nagyobb tőzsdék infrastrukturális gerinchálózatának kulcs komponensei.

A TACL interpretált. TACL utasítások egyszerű szövegfájlokban tárolhatók. A script tartalmazhat makrókat, rutinokat vagy definíciókat (DEFINE). Ezeket a script-eket gyakran arra használják, hogy összetett konfigurációs utasításokat tároljanak velük. Ilyen lehet pl. egy elindulási script vagy a hardver konfigurációs script.

A TACL nyelv nagy számú beépített segédprogramot tartalmaz, melyek segítségével a felhasználó elkaphatja a kimenetet számos rendszerprogramtól, és elemezni tudja a megkapott szöveget, sorról-sorra vagy karakterről-karakterre. Ez biztosítja a felhasználók számára, hogy olyan TACL programokat írhassanak, amelyek képesek figyelni a rendszer eseményeket különböző szűrők használatán keresztül. Ezek pl. figyelhetik a rendszer- ill. az alkalmazásesemények naplóit.

Tartalomjegyzék

Főbb parancsok[szerkesztés]

  1. Egy processz futtatása: RUN
  2. Információ a futó processzekről: STATUS
  3. Jelenlegi környezetről információ kiírás: WHO

Főbb beépített függvények[szerkesztés]

  1. változók összehasonlítása: #COMPAREV
  2. Adat kiírása a kimenetre: #OUTPUT
  3. Processz információk kiiírása: #PROCESSINFO

Példa[szerkesztés]

A következő példa egy egyszerű tacl rutint futtatását mutatja be.

?Section HELLO_BERNARD ROUTINE
#OUTPUT Hello BERNARD

TACL rutin futtatása a következő lépésekből áll:

1. A rutin betöltéséhez a memóriába TACL prompt-ból gépeljük be:

>LOAD / KEEP 1 / FILE1

2. A rutin futtatásához gépeljük be:

>HELLO_BERNARD

3. Az eredmény a következő lesz:

Hello BERNARD

Mindez más módon is lehetséges, méghozzá úgy hogy készítünk egy FILE1 nevű fájlt és hozzáadjuk a következő két sort:

?TACL ROUTINE
#OUTPUT Hello BERNARD

A rutin végrehajtása a fájl megadásával történhet a tacl prompt-ból:

> RUN FILE1

Jegyzetek[szerkesztés]

Fordítás[szerkesztés]

Ez a szócikk részben vagy egészben a TACL című angol Wikipédia-szócikk fordításán alapul. Az eredeti cikk szerkesztőit annak laptörténete sorolja fel.