![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| On "event at a time" vs. "set at a time" processing | iBot | Complex Event Processing RSS News | 0 | 11-07-2008 01:10 PM |
| How to remove "New line characters" and "spaces" at a time | anushree.a | Shell Programming and Scripting | 4 | 09-08-2008 05:55 PM |
| add seconds to: date"|"time"|"HHMMSS | anaconga | UNIX for Advanced & Expert Users | 3 | 08-27-2008 01:17 PM |
| Sed , Replace a "variable text" inside of a statement | jackn7 | Shell Programming and Scripting | 4 | 03-04-2008 03:40 PM |
| Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`" | Lokesha | UNIX for Dummies Questions & Answers | 4 | 12-20-2007 01:52 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
help with "if" statement for TIME
This should be incredibly simple, but can't get it to work.
All I want to do is pause a script between 11:00 am and noon. I receive the following error: time.sh[4]: 13:55:45: syntax error script: 1 while true 2 do 3 TIME=$(date '+%H:%M:%S') 4 if [ $TIME -ge 11:00:00 ] -a [ $TIME -le 12:00:00 ] 5 then 6 echo "time between 11:00 and noon" 7 echo sleep time $TIME 8 sleep 3 9 else 10 echo "time all others" 11 fi 12 done |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|