Hi All,

        which heroe can tell me why the following does not work :

#!/bin/sh
cat <<EOF >newscriptfile.sh
#!/bin/sh
NOWS=$(date +%S)
NOWS=${NOWS#0}
NOWM=$(date +%M)
NOWM=${NOWM#0}
NOWH=$(date +%H)
NOWH=${NOWH#0}
FROMNOW=$1

MINUTE=$((${NOWM} + ${FROMNOW}))
MINUTE=$((${MINUTE} % 60))
HOUR=$((${NOWM} + ${FROMNOW}))
HOUR=$((${HOUR} / 60))
HOUR=$((${NOWH} + ${HOUR}))
HOUR=$((${HOUR} % 24))
echo $HOUR" "$MINUTE
EOF

        It's driving me nuts!!!

Sincerely,

Jan.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to