и так, по порядку:
\opt\etc\crontab
SHELL=/bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/opt/bin:/opt/sbin:/opt/usr/bin:/opt/usr/sbin:/opt/etc
MAILTO=""
HOME=/
# ---------- ---------- Default is Empty ---------- ---------- #
# Syntax for lines is : minute hour day month dayofweek command #
*/5 * * * * admin run-parts /opt/etc/cron.5mins
0 * * * * admin run-parts /opt/etc/cron.hourly
59 23 * * * admin run-parts /opt/etc/cron.d
0 0 * * 0 admin run-parts /opt/etc/cron.weekly
0 0 1 * * admin run-parts /opt/etc/cron.monthly
\opt\etc\cron.5mins\backup
#! /bin/sh
date >> /tmp/harddisk/ftp_pub/crontest.txt
mkdir /tmp/harddisk/ftp_pub/backup/`date -u +%d_%m_%Y`
cp /tmp/harddisk/ftp_pub/xz/* /tmp/harddisk/ftp_pub/backup/`date -u +%d_%m_%Y`
rm /tmp/harddisk/ftp_pub/xz/*
/usr/local/sbin/post-boot
#!/bin/sh
echo "post-boot запущен "`date` >> /tmp/tmp.log
echo "post-boot запущен "`date` >> /opt/etc/tmp.log
/opt/etc/init.d/rc.unslung
-----------------------------------------------
после ребута:
ps | grep cron | grep -v grep
пусто
/tmp/tmp.log
post-boot запущен Thu Jan 1 03:00:07 MSK 1970
/opt/etc/tmp.log
отсутствует
-----------------------------------------------
[admin@WL-500g /tmp]$ more /tmp/syslog.log
Jan 1 03:00:02 syslogd started: BusyBox v1.1.3
Jan 1 03:00:02 kernel: klogd started: BusyBox v1.1.3 (2007.01.01-14:37+0000)
Jan 1 03:00:02 kernel: cpu probe
Jan 1 03:00:02 kernel: prom init
Jan 1 03:00:02 kernel: cpu report
Jan 1 03:00:02 kernel: CPU revision is: 00029006
Jan 1 03:00:02 kernel: Primary instruction cache 16kb, linesize 16 bytes (2 ways)
Jan 1 03:00:02 kernel: Primary data cache 16kb, linesize 16 bytes (2 ways)
Jan 1 03:00:02 kernel: Linux version 2.4.20 (root@omnibook) (gcc version 3.2.3 with Broadcom modifications) #75 Fri Apr 6 00:12:23 MSD 2007
Jan 1 03:00:02 kernel: Setting the PFC value as 0x15
Jan 1 03:00:02 kernel: Determined physical RAM map:
Jan 1 03:00:02 kernel: memory: 02000000 @ 00000000 (usable)
Jan 1 03:00:02 kernel: On node 0 totalpages: 8192
Jan 1 03:00:02 kernel: zone(0): 8192 pages.
Jan 1 03:00:02 kernel: zone(1): 0 pages.
Jan 1 03:00:02 kernel: zone(2): 0 pages.
Jan 1 03:00:02 kernel: Kernel command line: root=/dev/mtdblock2 noinitrd init=/linuxrc console=ttyS0,115200
Jan 1 03:00:02 kernel: CPU: BCM4704 rev 9 at 264 MHz
Jan 1 03:00:02 kernel: Calibrating delay loop... 263.78 BogoMIPS
-----------------------------------------------
что будем делать далее???