Kbase P71185: Using UNIX SILENT
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  3/10/2004 |
|
Status: Unverified
GOAL:
Using UNIX SILENT
GOAL:
Example code for the use of UNIX SILENT.
FACT(s) (Environment):
SuSe Linux 8.0
FACT(s) (Environment):
Progress 9.1D
FIX:
The following is adapted from the documentation -
The 4GL UNIX statement runs a program, UNIX command, or UNIX script, or starts a UNIX interactive shell to allow interactive processing of UNIX commands.
After processing a UNIX statement, the Progress shell pauses and prompts you to press SPACEBAR to continue. You can use the SILENT option to eliminate this pause. Use this option only if you are sure that the UNIX program, command, or batch file does not generate any output to the screen.
Cf. running the following code against sports -
/* r-othru.p */
OUTPUT THROUGH wc > wcdata.
/* word count UNIX utility */
FOR EACH customer:
DISPLAY name WITH NO-LABELS NO-BOX.
END.
OUTPUT CLOSE.
PAUSE 1 NO-MESSAGE.
UNIX cat wcdata.
UNIX SILENT rm wcdata.
Change the line
UNIX cat wcdata.
to
UNIX SILENT cat wcdata.
and observe the different behaviour.