Snakatail for windows,如何配置外部工具参数?
我正在使用Snakeail for windows,但是在配置外部工具时,有些额外的功能我无法理解 由于没有关于的文档,或者我希望stackoverflow的人可能会有一些提示 我想做什么 关键字突出显示功能允许我过滤单词上的行,然后触发并启动可配置的外部工具。我想触发一个PHP脚本,并通过调用PHP脚本发送日志中的实际行,以便处理它 在Snakeail中似乎设置了几个变量,我可以使用,但是我似乎找不到任何方法 如何格式化/配置外部工具以发送日志行 这是我迄今为止的尝试 有一些字段需要配置Snakatail for windows,如何配置外部工具参数?,windows,tail,Windows,Tail,我正在使用Snakeail for windows,但是在配置外部工具时,有些额外的功能我无法理解 由于没有关于的文档,或者我希望stackoverflow的人可能会有一些提示 我想做什么 关键字突出显示功能允许我过滤单词上的行,然后触发并启动可配置的外部工具。我想触发一个PHP脚本,并通过调用PHP脚本发送日志中的实际行,以便处理它 在Snakeail中似乎设置了几个变量,我可以使用,但是我似乎找不到任何方法 如何格式化/配置外部工具以发送日志行 这是我迄今为止的尝试 有一些字段需要配置 na
name:
command:
arguments:
initial directory:
press shortcut key:
admin rights: [ ]
hide window: [ ]
我正在尝试进行配置,以便我可以将Snakateil中的行发送到php程序,因此我对其进行了如下确认:
name: PHP test
command: path-to-php.exe
arguments: path-to-php-file.php
initial directory:
press shortcut key:
admin rights: [ ]
hide window: [ ]
Name: Play sound
Command: path_to/sWavPlayer.exe
Arguments: "path_to_mp3/file.mp3"
Initial directory:
Press shortcut key:
Admin rights: [ ]
hide window: [ ]
我拥有的PHP文件如下:
<?php
$myfile = fopen("f:\output.txt", "w") or die("Unable to open file!");
fwrite($myfile, print_r(($_SERVER['argv'])));
fclose($myfile);
这就像一个符咒,但在本例中不需要snaketail的数据。Solved!
看来我的错误是PHP文件,所以一切都很好
<?php
$myfile = fopen("f:\output.txt", "w") or die("Unable to open file!");
ob_start();
var_dump($argv);
$data = ob_get_clean();
fwrite($myfile, $data);
fclose($myfile);
name: PHP test
command: path-to-php.exe
arguments: path-to-php-file.php "$(LineText)"
initial directory:
press shortcut key:
admin rights: [ ]
hide window: [ ]