Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Re: Running a C Program within Perl.

by basicdez (Pilgrim)
on Dec 27, 2001 at 22:29 UTC ( #134677=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://134677]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2022-01-24 11:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (64 votes). Check out past polls.

    Notices?