title: Can't Get variables to update from one sh script to another
body: <p>I am trying to create a record of the last time I ran a file and use that time the next time I go to execute my script file.  So I have two files, <em>testlastrun.sh</em> and <em>testmyfile.sh</em>, in which I declare a variable to be used by the other file.  But for the life of me I can not seem to get it to work.</p>
  
  <h3>File testlastrun.sh</h3>
  
  <pre><code>#!/bin/sh
  
  #prepare range of dates for getting data for redemption protocol
  source testmyfile.sh
  echo "current date is : " `date +'%Y-%m-%d %H:%M:%S'`
  enddate=`date -d "+1 hour" '+%Y-%m-%d %H:%M:%S'`
  echo "the end date is : " $enddate
  startdate=$LASTRUNTIME
  echo "start date:" $startdate
  LASTRUN=$enddate
  export LASTRUN 
  echo "LASTRUN variable is : " $LASTRUN
  </code></pre>
  
  <h3>File testmyfile.sh</h3>
  
  <pre><code>#!/bin/sh
  
  echo "LASTRUN variable is currently set to : " $LASTRUN
  LASTRUNTIME=$LASTRUN
  export LASTRUNTIME
  </code></pre>
  
  <p>I feel like I have read every post on bash scripts and variables, but for the life of me I cannot get this to work.  So, if any of you uber-smart bash experts could help me, I would greatly appreciate it. :-)</p>