[:ne binary operator expected

[:ne binary operator expected

In addition to the explanation here, this error pops up when comparing two values.
Pay attention either comparing is about comparing two strings or two numeric values.

As a reminder :

Numeric comparisons


val1 -eq val2
val1 -ne val2
val1 -ge val2
val1 -gt val2
val1 -le val2
val1 -lt val2

Strings comparisons


val1 = val2
val1 != val2
val1 val2
-n val1
-z val2

Further readings :

https://www.linuxtechi.com/compare-numbers-strings-files-in-bash-script/

Advertisements

At : Garbled time

If you need to run a job once, at is the tool perfectly suited for this need.

The at tool requires some options to run a job at a given moment.

Without any parameters, at pops up the following error :

Garbled time

The job can be either specified from the at prompt or using the -f

Here is an example to run a job in a minute from the time the command at is executed :

at now + 1 minute

at>echo "This is a test"

at now + 1 minutes

at>echo "This is a test"

Using a text file :

at now + 1 minute -f job_file

Once the job is completed, an email is sent. Check your local Mailbox using the mail command.

Good tutorials around at providing additional examples :

https://www.computerhope.com/unix/uat.htm

https://tecadmin.net/one-time-task-scheduling-using-at-commad-in-linux/

https://linuxconfig.org/how-to-schedule-tasks-using-at-command-on-linux

https://www.thegeekstuff.com/2010/06/at-atq-atrm-batch-command-examples/

WARNING : Failed to connect to lvmetad. Falling back to device scanning

At boot time, the following message can pop up :

WARNING : Failed to connect to lvmetad. Falling back to device scanning

This message is displayed, whether running Debian stable or Debian testing.

To get rid of this message, disable lvmetad in /etc/lvm/lvm.conf


use_lvmetad=0

Update the initramfs for the current kernel your system uses :

update-initramfs -k $(uname -r) -u; sync

Reboot your system and you’re done !

Ubuntu workaround for this issue

This issue has already been reported in the Debian bug tracking system : #846946

Getting more details about Red Hat Security Advisories and related CVEs

Two links for an in-depth explanation regarding Red Hat backporting security fixes process as well as compatibility between Red Hat security advisories and Mitre CVEs.

Backporting Security Fixes

Red Hat and CVE compatibility

Red Hat provides free access to two databases for errata and for CVE referenced in Red Hat products :

Red Hat Product Errata database

Red Hat CVE Database