GiD - The personal pre and post processor

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.

  • UNIX/Linux example:
#!/bin/sh
basename = $1
directory = $2 
ProblemDirectory = $3
#    OutputFile: "$1.log"
#    ErrorFile: "$1.err"
rm -f "$basename.post.res"
"$ProblemDirectory/myprogram" "$basename"
mv "$basename.results" "$basename.post.res"
  • MS-DOS/Windows example:
rem basename=%1
rem directory=%2
rem ProblemDirectory=%3
rem    OutputFile: %1.log
rem    ErrorFile: %1.err
del %1.post.res
%3\myprogram %1
move %1.post %1.post.res


COPYRIGHT © 2022 · GID · CIMNE