BradleyA / Linux-admin

Shell scripts to automate download of GitHub traffic statistics, cluster administration, and create an animated GIF.
MIT License
29 stars 6 forks source link

cluster-command.sh correct incident of not creating directory if missing #16

Closed BradleyA closed 5 years ago

BradleyA commented 5 years ago

2018-12-08T10:02:22.297989-06:00 (CST) six-rpi3b.cptx86.com ./cluster-command.sh[7884] 2.15.125 131 uadmin 10000:10000 [DEBUG] Name_of_command >./cluster-command.sh< Name_of_arg1 >ls< Name_of_arg2 >< Name_of_arg3 >< Version of bash 4.3.48(1)-release 2018-12-08T10:02:22.306954-06:00 (CST) six-rpi3b.cptx86.com ./cluster-command.sh[7884] 2.15.125 144 uadmin 10000:10000 [DEBUG] CLUSTER >us-west1< DATA_DIR >/tmp< SYSTEMS_FILE NEW_SYSTEM-2 REMOTECOMMAND >ls< 2018-12-08T10:02:22.316357-06:00 (CST) six-rpi3b.cptx86.com ./cluster-command.sh[7884] 2.15.125 148 uadmin 10000:10000 [WARN] NEW_SYSTEM-2 file missing or empty, creating NEW_SYSTEM-2 file with local host. Edit /tmp/us-west1/NEW_SYSTEM-2 file and add additional hosts that are in the cluster. ./cluster-command.sh: line 149: /tmp/us-west1/NEW_SYSTEM-2: No such file or directory ./cluster-command.sh: line 150: /tmp/us-west1/NEW_SYSTEM-2: No such file or directory ./cluster-command.sh: line 151: /tmp/us-west1/NEW_SYSTEM-2: No such file or directory ./cluster-command.sh: line 152: /tmp/us-west1/NEW_SYSTEM-2: No such file or directory grep: /tmp/us-west1/NEW_SYSTEM-2: No such file or directory