title: How to execute .csh script with command line arguments from .csh script
body: <p>So I have .csh script generate.csh
  I want to call another .csh script from within it.
  I tried</p>
  
  <p>./shell_gen.csh test1 test2.prt</p>
  
  <p>But it runs shell_gen.csh  but without command line arguments.</p>
  
  <p>Anyone?</p>
  
  <p>Thanks</p>
  
  <p>generate.csh</p>
  
  <pre><code>#!/bin/csh
  ./shell_gen.csh test1 test2.prt
  </code></pre>
  
  <p>shell_gen.csh </p>
  
  <pre><code>#!/bin/csh
  set source = output
  ############################################################
  # create pbm-gifs/ directory
  ############################################################
  set destination1 = /scratch/graphics/$1gif
  echo making $destination1
  
  if ( ! -e $destination1 ) then
    mkdir $destination1
    foreach file ( $source/*.pgm )
      echo convert $file $destination1/$file:t:r.gif
      convert $file $destination1/$file:t:r.gif
  end
  else
  echo "$destination1/ exists"
  endif
  </code></pre>