Run batch programs

A run of a batch program does not interact with a User Interface. Nothing displays on the Front End.

When running a batch program from the Genero Application Sever:

  1. In the application, replace RUN WITHOUT WAITING with RUN.
  2. Add an ampersand (&) for UNIX™ or start a new shell in Windows™.
MAIN
  MENU "RUN batch"
    COMMAND "RWW - earlier behavior"
      RUN "echo This is a batch test > test_batch.txt" WITHOUT WAITING
      MESSAGE "RWW done"
    COMMAND "RUN - current desired behavior"
      RUN "echo This is a batch test > test_batch.txt &"
      MESSAGE "RUN done" 
    ON ACTION CLOSE   
      EXIT MENU
  END MENU 
END MAIN

When you use a RUN ... WITHOUT WAITING, the Genero application would wait for the DVM to connect, which never would happen as it is a batch program. The Genero application would need to wait for DVM_AVAILABLE to be informed that the DVM did not connect.

When you use this recommended method, control returns to the Genero application as soon as the batch program finishes.