How To Run Internal Programs (Processes) Using

Escapade, or ESP for short, is a XML based server-side scripting language that provides an interface to back-end database contents...

How to run internal programs (processes) using
Escapade

What is Escapade?

  Escapade, or ESP for short, is a XML based server-side scripting language that
  provides an

  interface to back-end database contents. Specifically designed to create dynamic
  information

  from this data, Escapade can be used to generate any kind of document - HTML,
  XML,

  text...(more information www.escapade.org/).

What configuration should I Have?

  The script is tested on Windows platform Windows NT4.0 and on RedHat Linux 6.1.

Installation

  You should download the script engine from the http://www.squishedmosquito.com
  web

  site after quick registration process. The script engine is FREE. Attentively
  select the OS

  you use, and download your copy.

  The file is named Escapade-BETA-0.2.0 (windows) or Escapade-BETA-0.2.0LINUX.tar

  (Linux). After downloading unzip it and copy the content in your cgi-bin directory.

  In the same folder you should make another one folder named 'esp-pages' (this
  folder will

  contains the Escapade pages).

  Open your Server configuration file (httpd.conf in Apache) and add the following
  lines:

AddHandler escapade .esp

  Action escapade /cgi-bin/esp

Then save the file and restart your server.

First File

  This tutorial shows, how to run internal programs (processes) using Escapade.

  Open your favorite text editing tool and let's code:

  <html>

  <head>

  <title>My first Escapade Script</title>

  </head>

  <body>

  <pre>

  <RUNCMD "tracert www.yahoo.com">

  </pre>

  </body>

</html>

  Yes you can include the Escapade script into your plain HTML code. You can add
  any type

  of client-side script language(JavaScript,VBScript ).This is the power of Escapade.

  Save your file and name it ->trace.ert

  Then open your favorite browser and start the script:

  Http://yoursite.com/cgi-bin/esp?PAGE=trace.ert (LINUX)

  /PAGE must be in uppercase/

  or

  Http://yoursite.com/cgi-bin/esp.exe?PAGE=trace.ert (Windows)

  And the result should be shown in your screen.

The Escapade language is very easy for learning
  and at the same time is very powerful!

Start a program

  Open new file in your editor and named it 'runprogram.esp' .

  The file will containts the following lines:

  <html>

  <head>

  <title>Start a program</title>

  </head>

  <body>

  <pre>

  <RUNCMD "run.bat">

  <pre>

  </body>

  </html>

  The script is able to start .bat file . In you .bat file give instructions where
  is the program

  and the full path.

  Example:

@echo off

  "E:\Program Files\ProgNotepad\pn.exe"

and save the .bat file into your cgi-bin folder,
  then run your 'runprogram.esp' file.

The Escapade language is very easy for learning
  and at the same time is very powerful!

 

Share this article!

Follow us!

Find more helpful articles: