To give you the best experience, this site uses cookies. Continuing to use 9bis.net means you agree to our use of cookies.
 

 

How to run ( fr )

Dernière modification : 2013/01/26 19:17

Run MSH.EXE –h to get usage message
MSH script shell, version 1.4
(C) Copyright 2006-2009 9bis.com
Usage: msh [-a] [-bc] [-d] [-e] [-es size] [-h] [-i] [-k] [-o] [-p] [-q] [-r filename] [-s] [filename]
           -a : disable internal messages
           -bc: evaluate ((...)) with bc
           -d : debug mode on
           -e : inactive spawn/exec mode
           -es: define environment size
           -h : this help message
           -i : interactive mode on
           -k : inactive enhanced keyboard mode
           -o : command history on
           -p : print parameters
           -q : manage QUERY_STRING parameter
           -r : run encrypted file
           -s : run server mode

Click here to know about the command line parameters.


There are three way two run MSH.

The interactive mode

Just run MSH.EXE without any parameter to enter the interactive mode:
MSH script shell, version 1.4
(c) Copyright 2006-2009 9bis.com
msh>

In this mode you can write directly on the keyboard, the commands or the blocks of commands you need to run.
msh> is the normal prompt. Of course it can be easily redefined. In case of your are writing block structure, this prompt will be replaced by level prompts 1> , 2> ... that indicated the level of the block structure your are writing.

The command mode

Run MSH.EXE followed by some internal commands to execute them and return to the calling process.
msh> msh \"print This the command mode\"
This the command mode

By default at the end of the command MSH exits. But your can go on with interactive mode adding the -i parameter.

The script mode

If you have written some script files for MSH (the extension is .msh of course), run MSH.EXE followed by the name of the script to run i.
msh> msh script.msh
This is the script mode

By default at the end of the command MSH exits. But your can go on with interactive mode adding the -i parameter.