title: Bash Script to download ftp files
body: <p>I wrote a bash script to download files from a FTP server.  </p>
  
  <pre><code>#!/bin/bash
  screen /usr/local/bin/wget ftp://user:passwd@IP:/Folder/*
  </code></pre>
  
  <p>When I run this script manually it works, but when I try and set it to automatically do it with a cron job it doesn't work.</p>
  
  <p>Cron:</p>
  
  <pre><code>00 17 * * * /Users/user/.Scripts/test.sh
  </code></pre>
  
  <p>Any idea why this isn't working?</p>
  
  <p>I keep on getting this mail too</p>
  
  <pre><code>X-Cron-Env: &lt;SHELL=/bin/sh&gt;
  X-Cron-Env: &lt;PATH=/usr/bin:/bin&gt;
  X-Cron-Env: &lt;LOGNAME=user&gt;
  X-Cron-Env: &lt;USER=user&gt;
  X-Cron-Env: &lt;HOME=/Users/user&gt;
  Date: Mon, 15 Feb 2016 19:12:00 -0600 (CST)
  
  Must be connected to a terminal.
  </code></pre>
  
  <p>I just tried with the sh and that mail was what I got.  </p>