Quote:
Originally Posted by elit
Those " '|' (xtool) '|' " characters are pipes, that's how you pass data between programs and its is well known standard. Normally, you wouldn't never use '-'-' additionally in such case but I will try something like "cmd | xtool - - | cmd" later and let you know. Again v0.12 and ztool work fine like this.
|
Dude, I know that "|" is for pipe, but - - is for stdio in terms of xtool
The usage for xtool goes like this
xtool command input output
"-" denotes stdin/stdout depending where you put it.
This is how I have written it
Code:
if ParamArg[2] = '-' then
Output := THandleStream.Create(GetStdHandle(STD_OUTPUT_HANDLE))
else
Output := TFileStream.Create(ParamArg[2], fmCreate);
Quote:
Originally Posted by elit
Ok I can confirm that if I use "cmd | xtool precomp:zlib - - | cmd" then it work. Although '- -' should normally not be necessary in this type of syntax, at least it works. Thank you for a great tool.
|
The reason I have added it as "-"
is because what if you can accept input as stdin then the next program requires an existing file
it then becomes something like this
xtool command - output
or if input is a file and output is required as stdout
it becomes
xtool command input -
if pipes are involved it means stdin and stdout takes place which is why it is
xtool command - -