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

Here is what rdes looks like.
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
does that help in knowing how to execute it?

Replies are listed 'Best First'.
Re: Re: Re: Running a C Program within Perl.
by Fastolfe (Vicar) on Dec 28, 2001 at 00:28 UTC
Re(3): Running a C Program within Perl.
by dmmiller2k (Chaplain) on Dec 27, 2001 at 22:47 UTC
    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

      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