title: How to call a shell script and pass argument from another shell script
body: <p>I'm calling a shell script from another shell script and the called script requires some input (command line) parameters.<br>
  I'm have below mentioned code, but thats not working. I don't know why the argument values are not passed to the called script.</p>
  
  <pre><code>script1.sh
  =======================================
  #!/bin/bash
  ARG1="val1"
  ARG2="val2"
  ARG3="val3"
  . /home/admin/script2.sh "$ARG1" "$ARG2" "$ARG3"
  
  
  script2.sh
  =======================================
  #!/bin/bash
  echo "arg1 value is: $1 ....."
  echo "arg2 value is: $2 ....."
  echo "arg3 value is: $3 ....."
  </code></pre>
  
  <p>But when I execute script1.sh I get following result:</p>
  
  <pre><code>arg1 value is:  .....
  arg2 value is:  .....
  arg3 value is:  .....
  </code></pre>
  
  <p>What am I missing?</p>