in reply to Re: Running speedtest-cli with Perl and cron
in thread Running speedtest-cli with Perl and cron

Yes! Your suggestion for the if-statement works like a charm!

The script ran just as it should before as well, it just didn't give me the results from the test. Which is strange because it did so on the AIX system at work. The only thing not printing to screen is the up/down values.

Since I started mucking around with Perl only days ago I'm not very aware of how to really do stuff. I will definitely look into warnings and strict, and perhaps look for a smarter way of building it without the if-elsif.

Thanks for the help! :-)

Oh, btw... Here's the output using your statements:

Fri Dec 12 07:30:00 2014 : Download 47.82 Fri Dec 12 07:30:00 2014 : Upload 10.28