我有两个EC2服务器。一个运行Windows 2012 R2,另一个运行亚马逊的Linux构建。Linux框用作web服务器,PHP负责编写脚本。我希望Linux服务器每次处理RESTful文件(充当端点)时都向Windows发送一个字符串。A user hits PHP file end-point -> PHP or the server it runs on sends a string to
我正在尝试让下面的代码每分钟写入一个文件,并在后台运行一整天。我希望这个程序在计算机启动时启动。任何帮助都会非常感谢,因为我是一个新手!我将全天随机访问这个文本文件中的数据。from time import sleep
with open('timestamp', 'w') as f: reg_format_date = d_date.strftime("%I:%M %p CT