I am attempting to make it so my script only runs Monday through Friday from 7:00 AM until 6:00 PM, but the test below doesn't seem to work. Any help would be greatly appreciated.
#!/bin/sh -f
DAY=`date +%a`
TIME=`date +%H%M`
while [ $DAY = Mon -o Tue -o Wed -o Thu -o Fri ] && [ $TIME -gt 0700 -a $TIME -lt 1800 ] ;
do
......
Thanks,
John
#!/bin/sh -f
DAY=`date +%a`
TIME=`date +%H%M`
while [ $DAY = Mon -o Tue -o Wed -o Thu -o Fri ] && [ $TIME -gt 0700 -a $TIME -lt 1800 ] ;
do
......
Thanks,
John