阅读背景:

Ruby中的循环函数多次写入

来源:互联网 

I've been tasked with creating a server monitor that tests the system at standard intervals, and if it's beyond a certain level, the program will send an email to the user. Along with sending an email, it will also create a file that will show the load averages every 60 seconds. I can't seem to get the loop to write to a new line every time, it just keeps over-writing the first line, over and over. What am I missing?I've been tasked with creating a server monitor




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: