update some scripts due to RMC batch file format change

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4452 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
linggao 2009-10-26 21:01:16 +00:00
parent f5a68dc9cf
commit 4f1f15eb22
2 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ if (!$batch) { #handle single event
my $count;
for ($count = 1; $count <= $num_events; $count++) {
my $content=`sed -n "/Event $count\$/,/ERRM_COND_BATCH/ p" $filename`;
my $content=`sed -n "/Event $count:/,/ERRM_COND_BATCH/ p" $filename`;
my @content_array=split(/\n/, $content);
pop(@content_array); #get rid of last line

View File

@ -105,7 +105,7 @@ if (!$batch) {
my @inactive=();
my %new_value=();
for ($count = 1; $count <= $num_events; $count++) {
my $content=`sed -n "/Event $count\$/,/ERRM_COND_BATCH/ p" $filename`;
my $content=`sed -n "/Event $count:/,/ERRM_COND_BATCH/ p" $filename`;
my @content_array=split(/\n/, $content);
pop(@content_array); #get rid of last line