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.results" "$basename.post.res"
rem basename=%1JUST INFORMATIVE
rem directory=%2JUST INFORMATIVE
rem ProblemDirectory=%3JUST INFORMATIVE
rem OutputFile: %1.logIT IS USED BY GiD
rem ErrorFile: %1.errIT IS USED BY GiD
del %1.flavia.res%3\myprogram %1
move %1.post %1.flavia.res