利用这些子程序,主程序的逻辑允许用户创建敲打序列,或在守护模式下监听敲打序列并执行命令。
With the subroutines in place, the main program logic allows the user to create a knock sequence, or runs in daemon mode to listen for knocks and execute commands.
现在我们已经修改好这个配置文件,可以打印一条通知了,接下来使用下面的命令在守护模式下运行knockage脚本。
Now that you have modified the configuration file to print out a notification, run the knockAge script in daemon mode with the command.
还有更多的因素需要考虑,如磁盘和网络的速度、计算机上正运行的其他内容、该守护进程运行于调试模式的事实。
Many more factors come into play, such as disk and network speed, other things running on the computer, and the fact that the daemon is running in debugging mode.
应用推荐