Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^10: Using STDIN after exec() with ActiveState Perl

by Yaribz (Beadle)
on Jun 21, 2015 at 21:05 UTC ( [id://1131403]=note: print w/replies, xml ) Need Help??


in reply to Re^9: Using STDIN after exec() with ActiveState Perl
in thread Using STDIN after exec() with ActiveState Perl

Oh indeed you're right, actually it's not for the PATH environment variable that I needed the exec. It's for another environment variable which is used by the C++ library. If I set it with %ENV and I don't use exec, then the C++ library doesn't see it.
  • Comment on Re^10: Using STDIN after exec() with ActiveState Perl

Replies are listed 'Best First'.
Re^11: Using STDIN after exec() with ActiveState Perl
by Anonymous Monk on Jun 21, 2015 at 21:07 UTC

    Oh indeed you're right, actually it's not for the PATH environment variable that I needed the exec. It's for another environment variable which is used by the C++ library. If I set it with %ENV and I don't use exec, then the C++ library doesn't see it.

    Which one? :)

      It's the unitsync library used by the Spring RTS project (https://springrts.com/). The environment variables used by this library are specific to this project (SPRING_DATADIR and SPRING_WRITEDIR).
        It should work exactly the same way
        use Module::Load; ... $ENV{SPRING_DATADIR} = ...; load( "ModuleName" );

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2024-04-18 16:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found