Posted on 2009-12-29 16:48:10-08 by pylozachmeur in response to 12040
Re: Problem with startenv when creating a GRID::Machine object
First time I use this forum, I have been a little confused with < , > , & lt; and & gt; in my first message.

It may seem the code is wrong in the first post, so I will copy it again to avoid any confusion:

#!/opt/lampp/bin/perl -w use Sys::Hostname; use GRID::Machine; my %env_hashtable_BIS = ('ORACLE_BASE' => '/u01/app/oracle','ORACLE_HOME' => '/u01/app/oracle/produ +ct/tools/'); my $m = GRID::Machine->new( 'host' => 'oracle@sad01', 'uses' => [qw(Sys::Hostname)], 'startenv' => +\%env_hashtable_BIS);


And the part of the [...]/GRID/Machine.pm where the line 138 can be found:
#line 1 "$host" package GRID::Machine; use strict; use warnings; $USES $REMOTE_LIBRARY my \$rperl = $class->new( host => '$host', log => '$log', err => '$err', logic_id => '$logic_id', clientpid => $$, startdir => '$startdir', startenv => { qw{ @$startenv } }, pushinc => [ qw{ @$pushinc } ], unshiftinc => [ qw{ @$unshiftinc } ], sendstdout => $sendstdout, cleanup => $cleanup, prefix => '$prefix', # Where to install modules debug => $portdebug, ); \$rperl->main(); __END__ EOREMOTE } # end of sub RemoteProgram


Sorry for the inconvenience.
Direct Responses: 12045 | Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.