16 [ ! -f .pid ] && _exit "Can't found '`pwd`/.pid'.\nTry to pgrep your process name and dump pid to that file."
20 [ "$1" = "" ] && _exit "Usage: $0 [-f] <content: operation string or file (one operation per line) if '-f' provided>; i.e.: $0 help, $0 -f myOperationsList.txt"
22 [ "$1" = "-f" ] && FILE=$2
28 [ ! -f "$FILE" ] && _exit "Can't found provided file '$FILE'."
29 grep -v "^#" $FILE | sed '/^[ \t]*$/d' > sigusr2.in
34 while [ ! -s sigusr2.out -a $count -lt 500 ]; do sleep 0.01; count=$((count+1)); done