When I run the script on the command line and print the contents of the text configuration file, I see the output shown below.
在命令行运行该脚本并输出文本配置文件中的内容,能够看到下列输出。
The first is used to read the XML configuration file; the second is used to print the object that is received after de-marshaling the SOAP request.
第一个用于读取XML配置文件;第二个用于打印解组SOAP请求后收到的对象。
Now that you have modified the configuration file to print out a notification, run the cmdWhistle.pl script in daemon mode with the command sndpeek --print --nodisplay | perl cmdWhistle.pl.
现在您已经修改了配置文件来给出通知,用命令 sndpeek --print --nodisplay | perl cmdWhistle.pl 以守护进程模式运行 cmdWhistle.pl 脚本。
应用推荐