• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

What wrong with this command in BASH

Bird222

Diamond Member
First, I'm a newb so keep that in mind. 🙂 This is on my tomato router.

This seems to work
Code:
if [ $(expr $(expr $(expr $curDate - $fileDateTor) + 43200) / 86400 ) -ge 5 ]; then

However this doesn't
Code:
if $(( (($curDate - $fileDateTor + 43200) / 86400 ) >= 5 )); then

Any idea why?
 
Last edited:
"[]" is short for the "test" command. So if you want to learn more about BASH conditionals, try `man test`.
 
Back
Top