Some additional issues fixed.
This commit is contained in:
parent
d947d84646
commit
42c4305ac5
10
ppss
10
ppss
|
@ -26,7 +26,7 @@
|
||||||
trap 'kill_process' SIGINT
|
trap 'kill_process' SIGINT
|
||||||
|
|
||||||
SCRIPT_NAME="Distributed Parallel Processing Shell Script"
|
SCRIPT_NAME="Distributed Parallel Processing Shell Script"
|
||||||
SCRIPT_VERSION="2.95"
|
SCRIPT_VERSION="2.96"
|
||||||
|
|
||||||
#
|
#
|
||||||
# The first argument to this script can be a mode.
|
# The first argument to this script can be a mode.
|
||||||
|
@ -2254,8 +2254,12 @@ commando () {
|
||||||
#--># The actual execution of the command as specified by
|
#--># The actual execution of the command as specified by
|
||||||
#--># the -c option.
|
#--># the -c option.
|
||||||
#-->#
|
#-->#
|
||||||
|
|
||||||
|
# Check for "$ITEM" or "${ITEM" in the command line.
|
||||||
|
# ${ITEM} allows the usage of string operations.
|
||||||
|
|
||||||
BEFORE=`get_time_in_seconds`
|
BEFORE=`get_time_in_seconds`
|
||||||
`echo $COMMAND | grep -i '$ITEM' >> /dev/null 2>&1`
|
`echo $COMMAND | grep -E -i '\$\{ITEM' >> /dev/null 2>&1`
|
||||||
RETVAL="$?"
|
RETVAL="$?"
|
||||||
if [ "$RETVAL" = "0" ]
|
if [ "$RETVAL" = "0" ]
|
||||||
then
|
then
|
||||||
|
@ -2542,7 +2546,7 @@ terminate_listener () {
|
||||||
}
|
}
|
||||||
|
|
||||||
inotify_listener () {
|
inotify_listener () {
|
||||||
inotifywait "$SRC_DIR" -m -e close -q --format '%w%f' | \
|
inotifywait "$SRC_DIR" -m -r -e close -q --format '%w%f' | \
|
||||||
while read -r line
|
while read -r line
|
||||||
do
|
do
|
||||||
if [ ! -d "$line" ]
|
if [ ! -d "$line" ]
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
DEBUG="$1"
|
DEBUG="$1"
|
||||||
VERSION="2.95"
|
VERSION="2.96"
|
||||||
TMP_DIR="/tmp/ppss"
|
TMP_DIR="/tmp/ppss"
|
||||||
PPSS=./ppss
|
PPSS=./ppss
|
||||||
PPSS_DIR=ppss_dir
|
PPSS_DIR=ppss_dir
|
||||||
|
|
Loading…
Reference in New Issue