Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Office Word
nameHEG_Batch_job_Help.doc


Instruction for running HEG on Command line mode (batch job) for a bunch of similar files

...

Please be aware that in windows if you edit your file with some editors such as wordpad the editor puts carriage return "^M" at the end of each line. This will prevent HEG from running and will cause error. Make sure that your editor will work like UNIX editors. If you have linux or cygwin, do editing there. Also the linux application "dos2unix" cleans  up "^M" from a file.


  1. The script MyHEG_batchScript.bat in BatchRunning.zip uses MS DOS script commands to run a batch job for HEG in windows. First it edits a template parameter file (created using HEG GUI or by other means as instructed above) to the desired format. The edited file that the script creates, using the .bat file for filename substitution, will contain the LineFeed characters at the end of each line. Since HEG does not recognize this character (causing error) they should be removed. In future this will be worked out to be done with MS DOS commands if possible.Currently script uses CYGWIN's dos2unix.exe tool that does cleaning for us.To use this executable we require to have a few other cygwin's dll files in the same directory that dos2unix.exe exist.

   Please also note that if you use MS wordpad for creating parameter file, you can use this executable on command line to get rid of LineFeed characters in your .prm file.

...