KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have the following logic in my bash script: #!/bin/bash local_time=$(date +%H%M) if (( ( local_time > 1430 && local_time < 2230 ) || ( local_time > 0300 && local_time < 0430 ) )); then # do something fi Every now and then, I get the error specified in the title (any time above 08xx appears to trigger the error). Any suggestions on how to fix this? I am running on Ubuntu 10.04 LTS [Edit] I modified the script as suggested by SiegeX, and now, I am getting the error: [: 10#0910: integer expression expected . Any help?
Tags (comma-separated)
Save Edits
Cancel