title: Calling script from shell script - getting command not found
body: <p>I am new to shell scripting. I am trying to work through this.</p>
  
  <pre><code>&gt; script to execute in cron (util.sh)
  #!/bin/sh
  HOST='ahostname'
  PORT='3306'
  USER='auser'
  PASS='apassword'
  DB='adatabase'
  . /mnt/stor/backups/backup.sh
  </code></pre>
  
  <p>(I also tried source /mnt/stor/backups/backup.sh)</p>
  
  <pre><code> &gt; script to execute (backup.sh)
  </code></pre>
  
  <p>When backup.sh is called (it does get called) it appears to simply be parsed and not executed. So no matter what I put in it I get messages like:</p>
  
  <pre><code>/mnt/stor/backups/backup.sh: line 8: date: command not found
  /mnt/stor/backups/backup.sh: line 8: mysqldump: command not found
  /mnt/stor/backups/backup.sh: line 8: tar: command not found
  /mnt/stor/backups/backup.sh: line 8: rm: command not found
  </code></pre>
  
  <p>The idea is to have a domain localized file, execute it with variables, and call a master script that uses the variable to do the dirty work. Because of limitations with one of my hosts and multiple domains this is the best method.</p>