2
rated 0 times
[
2]
[
0]
/ answers: 1 / hits: 1518
/ 1 Year ago, wed, january 25, 2023, 7:09:04
I have a variable named Seconds_Behind_Master
from one of my scripts. The problem is that this variable can either have a numeric value or can also take a string NULL
as its value. Now, when I try to execute this script in shell it gets executed but gives a warning like this:
[: Illegal number: NULL
I believe it is due to the fact that in this case the value is NULL
but when it compares it with numeral value 60
it gives this warning. How can I rectify it?
More From » command-line