delaying-a-command.rex |
Pipelines v2.1 |
.....|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8....+....9....+....10... |
**** Top of file ****
1
2 /* The following pipeline
uses the DELAY stage command to issue a PING every 3 seconds,
3 3 times.
4
5 The SHELLexecute command, which specifies
the BATCH operand; allows the pipeline to
6 continue processing records, even if the
PING system command returns a non-zero
7 return code. */
8
9 Address Rxpipe
10
11 'pipe literal /nowait +3 ping www.1052.co.uk/',
12
, /*
The command to issue. */
13
'| duplicate 2',
/* Make another 2 copies. */
14
'| delay', /* Wait for the interval. */
15
'| shell batch', /*
Issue the command in BATCH mode. */
16
'| console' /*
Display output on the console. */
17
18 Say 'Hit Enter to close..'
19 Parse Pull
20
21 Exit 0
**** End of file ****
|