title: Assigning Scripts to Variables for a Wrapper Script
body: <p>I am trying to assign bash scripts to variables for use in a wrapper script, yet every method I have tried has resulted to a "No such file or directory" error:</p>
  
  <pre><code>#!/bin/bash 
  textgen=$(&lt; textcreator.sh)
  tablegen=$(&lt; tablecreator.sh)
  htmlgen=$(&lt; webcreator.sh)
  
  
   exec $textproces
   if [[ $textproces -eq 0 ]]
      then
          echo "Text Processing has ran successfully"
          exec $listgen
          if [[ $listgen -eq 0 ]]
            then
                echo "List Generation has ran successfully"
                exec $pagegen
                if [[ $pagegen -eq 0 ]]
                  then
                      echo "HTML Page Generation has ran successfully"
                      echo "The command wrapper has finished successfully"
                      exit 0
                  else
                    echo "Error: HTML Page Generation was unsuccessful"
                    exit 1
                fi
            else
               echo "Error: Text Processing was unsuccessful"
               exit 1
          fi
      else
          echo "Error: Text Processing was unsuccessful"
          exit 1
   fi
  </code></pre>
  
  <p>The methods I have tried: cat filename, export, source and standard assigning. The idea is that it is to work without having to give a path name, all of these shells are in the same directory anyway. All help is vastly appreciated!</p>
  
  <p>NOTE: I know its horrifying, but it was the way I thought of doing it with the IF statements</p>