Comments (8)
The script requires Bash 4.3+, so as stated on the README, make sure you either run it with: ./status.sh
or explicitly use Bash: bash status.sh
. If you are using Bash, what is the output of echo "$BASH_VERSION"
?
from remote-servers-status.
4.2.46(2)-release
from remote-servers-status.
Hm, make you could add a check at script startup and bail out?
from remote-servers-status.
BTW, bash 4.2 version is used by CentOS 7.x which has active LTS support until July 2024 so there are a lot of servers running it by default.
from remote-servers-status.
Interesting, Bash 4.2 is from 2011, so I am surprised that it is still supported by anyone... Most of my other scripts already require at least Bash 4.4. Anyway, it is of course possible to update this function to use the old syntax, but there might be other incompatibilities with Bash 4.2 in the script.
Edit: From further looking at it, there actually is some Bash 4.4 syntax in the script, so you would also need to revert my changes in 1106b11, specifically those that added the @E
and @Q
s.
from remote-servers-status.
This thing with RHEL and derivatives like CentOS / Rocky Linux is that they usually ship with stable (i.e. a couple years old packages) when the distro is new and then they support it for around 10 years. So, you get 10-15 year old software near the end of the cycle.
However, they apply all security patches to it, so you basically have a stable feature set and security in the long run.
Thanks for checking for other incompatibilities. I will look into patching the script or maybe running it on another server with newer Rocky Linux installation instead.
from remote-servers-status.
Thanks for the info. I usually try to support the oldest version of Debian/Ubuntu that is still officially supported. Currently that is Ubuntu 18.04 LTS, which includes Bash 4.4. I will definitely update the README to make this clearer.
Anyway, I am open to supporting older Bash versions, so PRs are welcome. However, I am of course not committing to supporting those older versions indefinitely, as I do not have access to any systems that old to test it on, although July 2024 would be fine
The necessary changes to the indexOf()
function and to remove that parameter transformation syntax should be simple. Also see: https://unix.stackexchange.com/q/486461.
from remote-servers-status.
I removed the indexOf()
function as part of 8115c55, so the script should now work for you. Let me know if you have any further issues.
from remote-servers-status.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from remote-servers-status.