here's my
/etc/crontab
Code:
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/java/jre/bin:
MAILTO=root
HOME=/
# run-parts
01 * * * * root nice -n 19 run-parts /etc/cron.hourly
02 4 * * * root nice -n 19 run-parts /etc/cron.daily
22 4 * * 0 root nice -n 19 run-parts /etc/cron.weekly
42 4 1 * * root nice -n 19 run-parts /etc/cron.monthly
here's my
/etc/spool/cron/perry
Code:
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.3376 installed on Sun Jul 11 17:18:01 2004)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
*/1 * * * * nice -n 19 run-parts /home/perry/cron
here's the contents of
/home/perry/cron
Code:
chgimage
chgimage.jar
here's the contents of
chgimage
Code:
#!/bin/sh
cp /mnt/maxtor/Network/nice/nice01/satellite_image.jpg /mnt/maxtor/Network/nice/nice01/image.jpg
java -jar chgimage.jar /mnt/maxtor/Network/nice/nice01 /home/perry/cron/chgimage
it's a cool idea, to have a java program run every minute, pick an image and write it out where gkrellm-kam can read it, then re-write the chgimage script itself so that next time there's a new update....
so close yet so far away, everything works but the damn cron....
and i wonder if run-parts has a big problem with the jar file, i guess i can try and move that out of the way....
any lesson in the
blatent obvious would be greatly appreciated...
- perry