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

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/BIPSConnect/bin /opt/BIPSConnect/bin/micn_cr2k_bips_test_console /home/w951an6/perl/ph +ase_II/xxx.xml

If that's the whole script, then you are missing the shebang line, i.e., #!/bin/sh, without which, Perl will attempt to execute it with your default shell, which (you didn't say) might be of the csh variety, not a Bourne-style (sh-like) shell.

Try putting a shebang as the first line.

dmm

Replies are listed 'Best First'.
Re: Re(3): Running a C Program within Perl.
by basicdez (Pilgrim) on Dec 28, 2001 at 00:29 UTC
    Shebang line does not work either.

      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