Salome HOME
Fixed problem with dump study and small optimization:
[modules/kernel.git] / bin / appliskel / README
index 21ee467ac0d463bdc22ac483164083acbdd52ce9..67559a9c78507e895e28abb9620f3db4c8c160df 100644 (file)
@@ -1,55 +1,70 @@
+Copyright (C) 2007-2016  CEA/DEN, EDF R&D, OPEN CASCADE
+
+Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+This library is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+
+See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+
 =======================================
 Set of scripts for a SALOME application
 =======================================
-*html version of this document is produced with docutils*::
 
-  rest2html < doc.txt > doc.html
-
-This document corresponds to SALOME2 3.1. (alpha version)
-
-+-------------------------------------------+
-| **WORK in PROGRESS, INCOMPLETE DOCUMENT** |
-+-------------------------------------------+
+This document corresponds to SALOME 6.4.0
 
 SALOME Application concept
 --------------------------
 
-See SALOME_Application_ to define your own configuration of SALOME and run it
-on one or several computers. This is the recommended way of configuration.
-
-.. _SALOME_Application: ../../doc/SALOME_Application.html
+See the documentation of KERNEL module for more information on SALOME
+Application concept and to learn how to define your own configuration of
+SALOME and run it on one or several computers. The recommended way to create
+a new application is with the script appli_gen.py that can be found in KERNEL
+installation. An application has probably already been generated for you if
+you downloaded a binary version of SALOME.
 
+To find all the files described below, please refer to a generated
+application as some of them are generated automatically and thus are not
+present in this appliskel directory.
 
 User run scripts
 ----------------
 
 The SALOME user can use the following scripts:
 
-runAppli
+runAppli [DEPRECATED]
    Launches a SALOME Session
    (similar to ${KERNEL_ROOT_DIR}/bin/salome/runSalome but with a different
    name to avoid confusions).
 
-runSession
+runSession [DEPRECATED]
    Launches a shell script in the SALOME application environment, with access
    to the current SALOME session (naming service), if any.
    Without arguments, the script is interactive. With arguments, the script
    executes the command in the SALOME application environment.
 
-runConsole
+runConsole [DEPRECATED]
    Gives a python console connected to the current SALOME Session.
    It is also possible to use runSession, then python.
 
-runTests
-   Similar to runSession, used for unit testing. runTests defines a new 
-   configuration for naming service (new port number) to avoid interferences
-   with a running SALOME session. runSession tries to use an already existing
-   naming service definition from a running session (hostname & port number).
+salome [NEW]
+   A single Python command to start SALOME:
+   salome [start]:  replace runAppli
+   salome shell:    replace runSession
+   salome console:  replace runConsole
 
-killCurrentPort
-   Kills the last SALOME session corresponding to this application, and 
-   intially launched from this computer.
-   Cleans associated config files.
 
 SALOME internal run scripts
 ---------------------------
@@ -60,9 +75,6 @@ envd
 getAppliPath.py
    Used by other scripts to define the Application Path.
 
-searchFreePort.sh
-   Used by other scripts to find a free port for naming service.
-
 For remote calls, SALOME uses one script.
 
 runRemote.sh
@@ -71,7 +83,7 @@ runRemote.sh
    arguments define the command to execute.
 
 
-The following files must be adapted to your environment and SALOME Application
+The following files can be adapted to your environment and SALOME Application
 ------------------------------------------------------------------------------
 
 - CatalogResources.xml
@@ -80,10 +92,9 @@ The following files must be adapted to your environment and SALOME Application
 - env.d/envProducts.sh
 - env.d/envSalome.sh
 
-CatalogRessources.xml
-   This files describes all the computer the application can use. The given
-   example is minimal and suppose ${APPLI} is the same relative path
-   to ${HOME}, on all the computers. A different directory can be set on a
+CatalogResources.xml
+   This files describes all the computers the application can use. The default
+   file is minimal. A specific application directory can be set on a
    particular computer with a line::
 
        appliPath="my/specific/path/on/this/computer"
@@ -95,23 +106,21 @@ SalomeApp.xml
 
 Proposal for env.d scripts
 ~~~~~~~~~~~~~~~~~~~~~~~~~~
-Each user **must define** his own configuration for these scripts, following
-the above rules. **The following is only an example not working as it is**.
-
-atFirst.sh
-    Sets the computer configuration not directly related to SALOME,
-    like useful tools, default PATH.
+Each user can define his own configuration for these scripts, following
+the above rules. The generated files are good examples to start with.
 
 envProducts.sh
     Sets the SALOME prerequisites.
 
-envSALOME.sh
+configSalome.sh
     Sets all the MODULE_ROOT_DIR that can be used in the SALOME application.
 
-    SalomeAppConfig is also defined by::
+configGUI.sh
+    Sets variables necessary for SALOME GUI.
+    SalomeAppConfig is defined by::
 
       export SalomeAppConfig=${HOME}/${APPLI}
 
-    where SalomeAppConfig designates the directory containing SalomeApp.xml. 
-    Note that ${APPLI} is already defined by the calling scripts when 
-    env.d/envSalome.sh is sourced.
+    where SalomeAppConfig designates the directory containing SalomeApp.xml.
+    Note that ${APPLI} is already defined by the calling scripts when
+    env.d/configGUI.sh is sourced.