I have a script that pings a few external devices, and if the times are excessive, writes the variables into an E-Mail and sends it to me. This script runs every 5 minutes and works perfectly. Because of a short term issue, I want to have the script write the resulting data (a few local variables) into a file which will end up in Excel. So every time the script runs, it appends one line to the file. Should be simple, but everything I have tried results in the script unable to run at all if my print to file command is there. So obviously I seriously don't have the syntax right...
This is an extract of the E-Mail command (the E-Mail body is more verbose to make it more human readable - not needed for the import to Excel)
Code: Select all
/tool e-mail send to jim@<redacted> subject=$Sub1 body=($AvgRtt1, $AvgRtt2, $AvgRtt3, $AvgRtt4, $AvgRtt5")
Help...