Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re(3): Running a C Program within Perl.

by dmmiller2k (Chaplain)
on Dec 27, 2001 at 22:47 UTC ( [id://134680]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-04-26 02:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found