[Android Software/Hacking General [Developers Only]] slimcyril:
Here's a script I adjusted to fit my needs from [MENTION=4184553]spikecursed[/MENTION], please look through it & let me know if I did it right before I run it & below it is [09cron] which I already have in system/etc/initd folder

#!/system/xbin/sh

################################

### CYRIL - CRONJOB V2 ###

################################

echo "#############################";

sleep 1;

echo "### CYRIL - CRONJOB ###";

sleep 1;

echo "#############################";

echo "Require : root + init.d";

echo " ";

sleep 1;

echo "Preparing Cron Directory";

busybox mount -o remount,rw -t auto /system 2>/dev/null;

mkdir /data/cron.d 2>/dev/null;

busybox mount -o remount,ro -t auto /system 2>/dev/null;

echo > /data/cyrilokoli;

chmod 777 /data/cyrilokoli;

sleep 1;

echo "... done";

echo " ";

echo "Preparing Cron Trigger";

busybox mount -o remount,rw -t auto /system 2>/dev/null;

cp -f 09cron /system/etc/init.d/09cron 2>/dev/null;

chmod 755 /system/etc/init.d/09cron;

busybox mount -o remount,ro -t auto /system 2>/dev/null;

sleep 1;

echo "... done";

echo " ";

echo "Preparing Cron Sample Job";

busybox mount -o remount,rw -t auto /system 2>/dev/null;

echo "*/5 * * * * date > /data/09cron.log" > /data/cron.d/root;

cp -f sclean /system/xbin/sclean 2>/dev/null;

chmod 755 /system/xbin/sclean 2>/dev/null;

echo "0 1 * * 1 /system/xbin/sclean" >> /data/cron.d/root;

chmod 755 /data/cron.d/root;

busybox mount -o remount,ro -t auto /system 2>/dev/null;

sleep 1;

echo "... done";

echo " ";

sleep 1;

echo "CYRIL - CRONJOB configured";

echo "Please check /data/09cron.log every 5 minute";

echo "to verify crond is run properly";

echo "By default installed :";

echo "1. Run date log every five minutes";

echo "2. Run zeppelinrox sclean script every monday 1 am";

echo "Please adjust this to meet your needs";

sleep 1;

echo " ";

echo "#############################";

echo " ";

sleep 1;

echo "Cronjob root : /data/cron.d/root";

echo "Cronjob root log : /data/09cron.log";

sleep 1;

echo " ";

echo "#############################";

echo " ";

echo "??? HOWTO ???";

echo "Example :";

echo "Backup APP to /mnt/sdcard/backup every 8 PM";

echo "Create file : /data/cron.d/root";

echo "0 20 * * * cp /data/app/*.apk /mnt/sdcard/backup";

echo " ";

echo "to check cron process : pgrep crond";

echo ".. or ..";

echo "to check cron process : crontab -l";

sleep 1;

echo " ";

echo "#############################";

sleep 2;

echo " ";

sleep 2;

echo "-[cyrilokoli]-";

echo " ";

echo "cyrilokoli@gmail.com";

sleep 2;

echo " ";

echo "Your phone will reboot in 5 second";

sleep 5;

echo "... bye ...";

reboot;

09cron;

#!/system/bin/sh

: '

============ Copyright (C) 2010 Jared Rummler (JRummy16) ============

This program is free software: you can redistribute it and/or modify

it under the terms of the GNU General Public License as published by

the Free Software Foundation, either version 3 of the License, or

(at your option) any later version.

This program is distributed in the hope that it will be useful,

but WITHOUT ANY WARRANTY; without even the implied warranty of

MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the

GNU General Public License for more details.

You should have received a copy of the GNU General Public License

along with this program. If not, see .

=====================================================================

'

###########

# IMPORTS #

###########

. /system/etc/init.d.cfg

#############

# FUNCTIONS #

#############

symlink_system_bin() {

# crond has "/bin/sh" hardcoded

if busybox [ ! -h /bin ]

then

mount -o remount,rw rootfs /

busybox ln -s /system/bin /bin

mount -o remount,ro rootfs /

fi

}

export_timezone() {

# set timezone (if you're not between -0500 and -0800 you get PST)

# todo - support other timezones

timezone=`date +%z`

if busybox [ $timezone = "-0800" ]; then

TZ=PST8PDT

elif busybox [ $timezone = "-0700" ]; then

TZ=MST7MDT

elif busybox [ $timezone = "-0600" ]; then

TZ=CST6CDT

elif busybox [ $timezone = "-0500" ]; then

TZ=EST5EDT

else

TZ=PST8PDT

fi

export TZ

}

set_crontab() {

# use /data/cron, call the crontab file "root"

if busybox [ -e /data/cron/root ]

then

mkdir -p /data/cron

cat > /data/cron/root