The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 10-13-2008
ali560045's Avatar
ali560045 ali560045 is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 328
but u missed the else part shall it be like this


#!/bin/ksh

days_since_epoch=$(perl -e 'print int(time/86400);')

if [[ "$(( $days_since_epoch % 15 ))" -ne 5 ]]
then
exit
else
my script
fi