-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
command: make use of the
--file
option
Append the recognized commands to the output file (option `--file`). One command per line in the format "probability<TAB>command". With this you are able to do things like the following: # Create a named pipe for later usage mkfifo ./myfifo # Let awk read from the named pipe and if the probability is > 0.9 execute the command in bash awk -F'\t' '{if ($1 > 0.9) { printf("%s &\n", $2) | "bash" }}' ./myfifo # Run ./command and let it write the recognized commands to the named pipe ./command --commands <(echo -e "emacs\nfirefox\nfoot\n") -m ./ggml-base.bin --file ./myfifo
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters