shell script working fine on one server but not on another
问题 the following script is working fine on one server but on the other it gives an error #!/bin/bash processLine(){ line="$@" # get the complete first line which is the complete script path name_of_file=$(basename "$line" ".php") # seperate from the path the name of file excluding extension ps aux | grep -v grep | grep -q "$line" || ( nohup php -f "$line" > /var/log/iphorex/$name_of_file.log & ) } FILE="" if [ "$1" == "" ]; then FILE="/var/www/iphorex/live/infi_script.txt" else FILE="$1" # make