Examples

Here are two examples of easy scripts to do. One of them is for Unix/Linux machines and the other one is for MS-Dos or Windows.

#!/bin/bash

basename = $1

directory = $2

ProblemDirectory = $3

# OutputFile: $1.log IT IS USED BY GiD

# ErrorFile: $1.err IT IS USED BY GiD

rm -f $basename.flavia.res

$ProblemDirectory/myprogram $basename

mv $basename.post $basename.flavia.res

rem basename=%1 JUST INFORMATIVE

rem directory=%2 JUST INFORMATIVE

rem ProblemDirectory=%3 JUST INFORMATIVE

rem OutputFile: %1.log IT IS USED BY GiD

rem ErrorFile: %1.err IT IS USED BY GiD

del %1.flavia.res%3\myprogram %1

move %1.post %1.flavia.res