Code_Aster ®
Version
7.4
Titrate:
Operator EXEC_LOGICIEL
Date:
19/01/05
Author (S):
Key J.P. LEFEBVRE
:
U7.00.01-C Page
: 1/4
Organization (S): EDF-R & D/AMA
Handbook of Utilization
U7.0- booklet: Data exchanges
Document: U7.00.01
Operator EXEC_LOGICIEL
1 Goal
To call since Code_Aster, a software or a command system. External software and command
system called must reside and will be carried out on the same machine as Code_Aster. It is more
particularly intended for the development of macro-commands. The mechanism of the fork type used
in the Unix version to call executable allows to recover the whole of the environment
cutting process associated with Code_Aster and more particularly a zone allocated memory
identical.
Handbook of Utilization
U7.0- booklet: Data exchanges
HT-66/05/004/A
Code_Aster ®
Version
7.4
Titrate:
Operator EXEC_LOGICIEL
Date:
19/01/05
Author (S):
Key J.P. LEFEBVRE
:
U7.00.01-C Page
: 2/4
2 Syntax
EXEC_LOGICIEL
(
LOGICIEL
= nom_exe,
(TX)
ARGUMENT = _F (
NOM_PARA = will l_para,
(l_TX)
)
)
Handbook of Utilization
U7.0- booklet: Data exchanges
HT-66/05/004/A
Code_Aster ®
Version
7.4
Titrate:
Operator EXEC_LOGICIEL
Date:
19/01/05
Author (S):
Key J.P. LEFEBVRE
:
U7.00.01-C Page
: 3/4
3 Operands
3.1 Operand
LOGICIEL
LOGICIEL = nom_exe
Name of the command or executable to call. It is a character string (between `), it
is necessary to specify the whole of the path (path) to reach L `executable. On the machine of reference
AlphaServer clayastr, the execution of Code_Aster is carried out under a temporary repertory, it
is thus not always possible to reach into relating to a file.
Note:
The officially referred software must have an entrance point under one
particular repertory managed by the administrator (/aster/tools on clayastr).
developer of macro-command must take the precaution to build the name in
concaténant the name of the repertory of installation which it will recover using a utility so
to ensure the portability of it.
3.2 Word
key
ARGUMENT
Allows to define the list of the arguments passed in the executable one.
3.3 Operand
NOM_PARA
NOM_PARA = will l_para
Names or values of the arguments passed to the executable one. The values passed in the form of
character strings, to load of executable to decode them, they are transmitted such
which, the character ``(white) being used as separator, the key word must be repeated time as many as it
y has arguments to pass.
4 Example
EXEC_LOGICIEL is not the only solution to call a command or a program, it is
possible while inserting a command python os.system to carry out the same type of operation.
Handbook of Utilization
U7.0- booklet: Data exchanges
HT-66/05/004/A
Code_Aster ®
Version
7.4
Titrate:
Operator EXEC_LOGICIEL
Date:
19/01/05
Author (S):
Key J.P. LEFEBVRE
:
U7.00.01-C Page
: 4/4
Intentionally white left page.
Handbook of Utilization
U7.0- booklet: Data exchanges
HT-66/05/004/A
Outline document