in reply to Re: Running speedtest-cli with Perl and cron
in thread Running speedtest-cli with Perl and cron
I like the use of print join and I will add this to my script.
This is the crontab line I use for appending the results in the same file, I also added an \n to my script to make a new line for each test. I don't see the need for throwing this into a .csv or such, so the notepad will suffice.
What's the best practice for writing to file? Should the file be written by the script, or is it okay to do this with crontab?
* */12 * * * /usr/bin/perl /bin/speedtest.pl >> /storage/documents/cron/speedtest/speedtest.txt 2>&1You guys are awesome! I've never encountered a forum where people answer this fast, and all the response is helpful. I'm going to be a lot on this website henceforth :-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Running speedtest-cli with Perl and cron
by NetWallah (Canon) on Dec 12, 2014 at 21:48 UTC |