satish.rpr has asked for the wisdom of the Perl Monks concerning the following question:
Here is the code: sub start_CM_Synergy() { my ($database_name) = @_; my $dbData = `grep $database_name /common/gm/scripts/dbInfo`; if($dbData eq "") { return 1; } my @Fld = split(/\s+/, $dbData); $dbName = $Fld[0]; $dbId = $Fld[1]; $ccm_home = $Fld[2]; $dbEnghost = $Fld[3]; my $dbPath = $Fld[4]; $home_dir = $ENV{HOME}; $ENV{CCM_ENGLOG} = "$home_dir/ccm_eng_" . "$dbId" . ".log"; $ENV{CCM_HOME} = "$ccm_home"; $ENV{CCM_UILOG} = "$home_dir/ccm_ui_" . "$dbId" . ".log"; $ENV{PATH} = $ENV{PATH} . ":" . "$ccm_home/bin"; `/common/gm/scripts/ccm_ini_init $dbId`; my $res=`$ccm_home/bin/ccm start -nogui -f $home_dir/.ccm_$dbId.ini +-d $dbPath/$dbName -m -q -h $dbEnghost`; print LOG $res; # Nothing is being printed if ($res ne "") { $ENV{CCM_ADDR}=$res; return 0; } else { return 1; } return 0; # subroutine not even returning to the caller with an inva +lid status }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: backticks, system not returning back control to script
by moritz (Cardinal) on Oct 28, 2009 at 10:00 UTC | |
by satish.rpr (Novice) on Oct 28, 2009 at 10:48 UTC | |
by moritz (Cardinal) on Oct 28, 2009 at 11:18 UTC | |
|
Re: backticks, system not returning back control to script
by jakobi (Pilgrim) on Oct 28, 2009 at 11:12 UTC | |
|
Re: backticks, system not returning back control to script
by jakobi (Pilgrim) on Oct 28, 2009 at 16:57 UTC | |
|
Re: backticks, system not returning back control to script
by gmargo (Hermit) on Oct 28, 2009 at 16:37 UTC |