Fixed distributed processing after replacing ARRAY mechanism with sed.

This commit is contained in:
Louwrentius 2010-05-15 22:50:51 +00:00
parent 9d92350f4b
commit 40b3ed8228

6
ppss
View File

@ -1514,12 +1514,12 @@ get_all_items () {
if [ "$RECURSION" == "1" ] if [ "$RECURSION" == "1" ]
then then
#ITEMS=`exec_cmd "find $SRC_DIR/ ! -type d"` #ITEMS=`exec_cmd "find $SRC_DIR/ ! -type d"`
`exec_cmd "find $SRC_DIR/ ! -type d"` >> "$LOCAL_INPUT_FILE" `exec_cmd "find $SRC_DIR/ ! -type d" > "$LOCAL_INPUT_FILE"`
check_status "$?" "$FUNCNAME" "Could not list files within remote source directory." check_status "$?" "$FUNCNAME" "Could not list files within remote source directory."
else else
log DEBUG "Recursion is disabled." log DEBUG "Recursion is disabled."
#ITEMS=`exec_cmd "ls -1 $SRC_DIR"` #ITEMS=`exec_cmd "ls -1 $SRC_DIR"`
`exec_cmd "ls -1 $SRC_DIR"` >> "$LOCAL_INPUT_FILE" `exec_cmd "ls -1 $SRC_DIR" > "$LOCAL_INPUT_FILE"`
check_status "$?" "$FUNCNAME" "Could not list files within remote source directory." check_status "$?" "$FUNCNAME" "Could not list files within remote source directory."
fi fi
else else
@ -2142,7 +2142,7 @@ show_status () {
ITEMS=`exec_cmd "ls -1 $SRC_DIR 2>/dev/null | wc -l" 1` ITEMS=`exec_cmd "ls -1 $SRC_DIR 2>/dev/null | wc -l" 1`
fi fi
else else
ITEMS=`exec_cmd "cat $PPSS_HOME_DIR/$INPUT_FILE 2>/dev/null | wc -l" 1` ITEMS=`exec_cmd "cat $PPSS_HOME_DIR/$LOCAL_INPUT_FILE 2>/dev/null | wc -l" 1`
fi fi
ITEMS=`echo $ITEMS | sed s/\ //g` ITEMS=`echo $ITEMS | sed s/\ //g`