title: c wrapper to a perl script that accepts arguments hard coded in the wrapper
body: <p>My question might be described as the reverse of "Passing cmd line arguments through a C setuid wrapper...". That question asks how to run this <code>./cwrapper perl.pl --option1 --option2</code></p>
  
  <p>In my case, the Perl script is embedded in the wrapper. This wrapper comes from page 570 "Programming Perl". And it works---until I add an argument following the script in the wrapper. </p>
  
  <p>THIS WORKS -- perl_script.pl outputs expected results:</p>
  
  <pre><code>#define REAL_SCRIPT "/path/to/script/perl_script.pl"
  main (ac, av)
      char **av;
  {
      execv(REAL_SCRIPT, av);
  }
  </code></pre>
  
  <p>THIS DOES NOT WORK--eg perl_script outputs nothing to stdin or stderr.  Note the "arg=12345":</p>
  
  <pre><code>#define REAL_SCRIPT "/path/to/script/perl_script.pl arg=12345"
  main (ac, av)
      char **av;
  {
      execv(REAL_SCRIPT, av);
  }
  </code></pre>
  
  <p>Thanks for any clues. 
  John</p>