Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
bindas
bybindas, January 15, 2015
0 of 1 people found this review helpful
keep getting error if i execute the script directly.
bash: ./check_cpu_linux.sh: /bin/bash^M: bad interpreter: No such file or directory
if i comment out the shabang (#!/bin/bash) header. then i get this error.
./check_cpu_linux.sh
./check_cpu_linux.sh: line 36: $'\r': command not found
./check_cpu_linux.sh: line 38: $'\r': command not found
./check_cpu_linux.sh: line 40: $'\r': command not found
./check_cpu_linux.sh: line 46: $'\r': command not found
./check_cpu_linux.sh: line 58: $'\r': command not found
./check_cpu_linux.sh: line 63: $'\r': command not found
./check_cpu_linux.sh: line 68: $'\r': command not found
./check_cpu_linux.sh: line 70: syntax error near unexpected token `$'{\r''
'/check_cpu_linux.sh: line 70: `print_release() {
bash: ./check_cpu_linux.sh: /bin/bash^M: bad interpreter: No such file or directory
if i comment out the shabang (#!/bin/bash) header. then i get this error.
./check_cpu_linux.sh
./check_cpu_linux.sh: line 36: $'\r': command not found
./check_cpu_linux.sh: line 38: $'\r': command not found
./check_cpu_linux.sh: line 40: $'\r': command not found
./check_cpu_linux.sh: line 46: $'\r': command not found
./check_cpu_linux.sh: line 58: $'\r': command not found
./check_cpu_linux.sh: line 63: $'\r': command not found
./check_cpu_linux.sh: line 68: $'\r': command not found
./check_cpu_linux.sh: line 70: syntax error near unexpected token `$'{\r''
'/check_cpu_linux.sh: line 70: `print_release() {