Hi All,
I have tried the following simple script...
#!/bin/csh
set time=`date +"%H%M"`
if ($time >= 0700) then
echo $time"INTIME"
#!/bin/csh
set time=`date +"%H%M"`
if ($?time >= 0700) then
echo $time"INTIME"
else
echo $time"OUTTIME"
endif
It is showing "OUTTIME" everytime. Currently the system time i.e. $time is 0933, but it is not showing "INTIME".
Can anybody help me please ???
Regards - Sraj
I have tried the following simple script...
#!/bin/csh
set time=`date +"%H%M"`
if ($time >= 0700) then
echo $time"INTIME"
#!/bin/csh
set time=`date +"%H%M"`
if ($?time >= 0700) then
echo $time"INTIME"
else
echo $time"OUTTIME"
endif
It is showing "OUTTIME" everytime. Currently the system time i.e. $time is 0933, but it is not showing "INTIME".
Can anybody help me please ???
Regards - Sraj