environment inheritance..

From: ktom (abc_at_invalid.com)
Date: 03/07/05

  • Next message: Joe Smith: "Re: environment inheritance.."
    Date: Mon, 07 Mar 2005 21:16:31 GMT
    
    

    when executing a 'system( some_other program );' from within a perl
    script the environment it inherits, specifically the path, is unexpected.

    i login to the work station and an environment is defined and used for
    subsequent shells. and so it seems it is used for the 'system' command.

    i would prefer that it use the environment of the shell from which the
    perl script is called. as they are different and changing the other,
    the login environment, requires that i log out and login once more.

    is there a way to make the system call use the current environment..

    thanks..

    kevin


  • Next message: Joe Smith: "Re: environment inheritance.."

    Relevant Pages

    • Re: Need help running shell commands
      ... > a production environment before I can rund the DBI stuff in the Perl ... shell script setting up the environment in Perl, ...
      (comp.lang.perl.misc)
    • Re: how to source an environment file
      ... I want my perl script to read a file containing environment variables ... In korn shell we can do ... How do we do the same in perl. ...
      (comp.lang.perl.misc)
    • Re: how to source an environment file
      ... I want my perl script to read a file containing environment variables ... In korn shell we can do ... How do we do the same in perl. ...
      (comp.lang.perl.misc)
    • Re: how to source an environment file
      ... I want my perl script to read a file containing environment variables ... In korn shell we can do ... How do we do the same in perl. ...
      (comp.lang.perl.misc)
    • RE: DBI->Connect returning UNDEF in cgi but not in standalone pro g
      ... script where it worked to another script - and screwed up by just typing ... Thats why standalone perl program worked from ... So as per Ron and Bill, I also agree that environment variables might be ... >> The fact your code executes from the command line and not the web ...
      (perl.dbi.users)