Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1689

Multiple commands and piping to a BTM

$
0
0
This works fine.

Code:
v:\> timer & echo foo | grep foo & timer
Timer 1 on: 18:13:14
foo
Timer 1 off: 18:13:14  Elapsed: 0:00:00.146

This doesn't work well (TIMER ON twice).

Code:
v:\> timer & echo foo | greptest.btm foo & timer
Timer 1 on: 18:19:21
foo
Timer 1 on: 18:19:21

Apparently the second TIMER is executed in the pipe instance. Why are the two command lines parsed/executed differently?

GREPTEST.BTM looks like this.

Code:
v:\> type greptest.btm
grep.exe %1

Viewing all articles
Browse latest Browse all 1689

Trending Articles