below my script . Actually in my script i m taking the current date and then adding 15 days to it.
--------------------------------------------------------------------------
#!/bin/ksh
Current_day=`
perl -e 'print int(time);'`
echo $Current_day
count=0
count=`expr $Current_day + 1296000`
echo $count
perl -le 'print scalar localtime('"$count"');'
perl -e '@d=localtime ((stat(shift))[9]); printf "%4d-%02d-%02d\n", $d[5]+1900,$d[4]+1,$d[3]' '"$count"'
--------------------------------------------------------------------------
the last command that converts the $count value into format YYYY-MM-DD is not working . plz help me in this?