in reply to Re(3): Running a C Program within Perl.
in thread Running a C Program within Perl.

Shebang line does not work either.
  • Comment on Re: Re(3): Running a C Program within Perl.

Replies are listed 'Best First'.
Re(5): Running a C Program within Perl.
by dmmiller2k (Chaplain) on Dec 28, 2001 at 01:05 UTC

    My mistake. Whereas Korn shell (ksh) supports the syntax you are using:

    export ENVVAR=value

    Bourne shell (sh) doesn't, instead preferring:

    ENVVAR=value; export ENVVAR

    Perl is undoubtably running the command using the default Bourne shell (sh). Try specifying Korn shell in your shebang (you may have to modify the path depending upon where ksh is located on your system):

    #!/bin/ksh

    dmm