GithubHelp home page GithubHelp logo

date command about nagios-plugin-check_borg HOT 4 CLOSED

z3dm4n avatar z3dm4n commented on June 6, 2024
date command

from nagios-plugin-check_borg.

Comments (4)

bebehei avatar bebehei commented on June 6, 2024

Ouch. FreeBSD has a -v switch, which does almost the same as --date. But neither -v nor --date are a POSIX standard.

from nagios-plugin-check_borg.

bebehei avatar bebehei commented on June 6, 2024

I'm vomiting, when reading the proper answer on Stackexchange.

To elaborate the use a bit more: We need the date command just to convert dates. borg gives out normal dates and also we only require relative readable dates from the user input. GNU date is awesome, as it can suck in almost every date value and spit it out the required date in the given format.

Are you able to install GNU coreutils on your system? I'm not that experienced on *BSD systems, but it looks like there is a freshport for this. If it is installable as a supplement, I'd kindly request you to install this.

from nagios-plugin-check_borg.

z3dm4n avatar z3dm4n commented on June 6, 2024

-v looks quite interesting. This could fix the problem. Installing GNU coreutils would fix the problem as well and is much easier. Seems like there is no way to bring both date commands to do the job on both platforms with there own utils without blowing the code up quite a lot. :-( Consider this issue as closed. I'll install gdate and do :%s/date/gdate/g and this should do the trick as well. If not, I'll let you know.

from nagios-plugin-check_borg.

bebehei avatar bebehei commented on June 6, 2024

@z3dm4n I've created #8 reflecting the necessary changes to support a DATE variable. If you could test it, I'd appreciate it.

from nagios-plugin-check_borg.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.