Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想控制基于电子邮件收件箱的远程系统。例如,一个电子邮件帐户,其中包含一条消息,主题为“启动电机”。我有 fetchmail 检索一条消息并将其输出到文件中。是否可以选择使用 fetchmail 获取消息主题?
我正在尝试解析或 grep 输出文件以搜索主题“启动电机”。我试图通过管道传输 grep,但如果找到文本字符串,我看不到 True/False 选项?
假设找到文本字符串,我想 GPIO.output(18,GPIO.HIGH)