October 11, 201213 yr My system has been getting a some health errors, so I decided to replace a disk. But when I run preclear it says it can't find bash, when I run preclear with the path for bash specified, I get unknown command on line 65, 66, etc. So I assume my paths are screwed up for some reason. What should I check?
October 11, 201213 yr My system has been getting a some health errors, so I decided to replace a disk. But when I run preclear it says it can't find bash, when I run preclear with the path for bash specified, I get unknown command on line 65, 66, etc. So I assume my paths are screwed up for some reason. What should I check? All your add-ins and plug-ins. One of them messed with the $PATH variable. If you cannot find the bash shell, lots of things will not work. On my 4.7 server, it is: PATH=/usr/local/sbin:/usr/sbin:/sbin:./:/usr/local/bin:/usr/bin:/bin On my 5.0rc8a server it is: PATH=/usr/local/sbin:/usr/sbin:/sbin:./:/usr/local/bin:/usr/bin:/bin:/usr/kerberos/bin:/usr/kerberos/sbin In my personal opinion, both are HORRIBLE from a security standpoint. /bin, /usr/bin, /usr/sbin, and /sbin and everything else should ALWAYS be before the current directory. It should be dead last. bash is in /usr/bin/bash and it is linked to /bin/bash Joe L.
October 11, 201213 yr Author Thanks I'm still on 4.7, haven't been on the machine for tooo long. PATH looks like /usr/local/sbin:/usr/sbin:/sbin:./:/usr/local/bin:/usr/bin:/bin I also found bash in /usr/bin Error from the script looks like: ver="1.13" + ver=$'1.13\r' + $'\r' : command not foundine 65: progname=$0 + progname=$'preclear_disk.sh\r' options=$* ' options='-A /dev/sdd + $'\r' : command not foundine 68: usage() { 'reclear_disk.sh: line 69: syntax error near unexpected token `{ 'reclear_disk.sh: line 69: `usage() { Thanks. On my 4.7 server, it is: PATH=/usr/local/sbin:/usr/sbin:/sbin:./:/usr/local/bin:/usr/bin:/bin In my personal opinion, both are HORRIBLE from a security standpoint. /bin, /usr/bin, /usr/sbin, and /sbin and everything else should ALWAYS be before the current directory. It should be dead last. bash is in /usr/bin/bash and it is linked to /bin/bash Joe L.
October 11, 201213 yr Author Something funky happened when copying the file from Windows 7. Copied it again and it's clearing now. Thanks again.
Archived
This topic is now archived and is closed to further replies.