title: wget capture stdout to variable
body: <p>I have a shell script that I want to put into a chronjob, and it is supposed to fetch data every day and then write a quick log entry.  I would like the log entries to look something like:</p>
  
  <pre><code>2015-12-07 11:16:34: No such file ‘CatchUpPlusActivity_20150801’.
  2015-12-07 11:24:20: (14,4 MB/s) - ‘CatchUpPlusActivity_20150801.csv.gz’ saved [52690279]
  2015-12-07 11:28:40: File ‘CatchUpPlusActivity_20150801.csv.gz’ already there; not retrieving.
  </code></pre>
  
  <p>My shell script looks like this:</p>
  
  <pre><code>sPath="ftp://user:pass@10.10.23.32/public/download/exports/webactivity/PullVODData/"
  sFiles="CatchUpPlusActivity_20150801*"
  
  sOut=$(sudo wget ${sPath}${sFiles} -nc)
  
  now="$(date +"%Y-%m-%d %H:%M:%S")"
  echo ${now}: ${sOut}  &gt;&gt; /path/to/logs/catchup_plus.log
  </code></pre>
  
  <p>Where I would like sOut to read the final message from each ftp.  However, I'd be happy for now if it just returned the last line of the whole message.  As it stands sOut is empty</p>