-----Original Message-----
From: "Richard Whittaker"
Greetings:
I'm trying to setup a shell script to run regularly, and thus far, all my quests for information have turned up dry, so I am hoping this list will provide what I seek..
I have this shell script, demonstrating the attendant permissions:
shaggy:~ # cat archmrtg.sh #!/bin/sh export FILEDATE=`date +%m%d%Y` export ARCHDIR=$1"archive/"$FILEDATE
mkdir $ARCHDIR cp $1index.html $ARCHDIR cp $1*day.png $ARCHDIR You have new mail in /var/mail/root shaggy:~ # ls -l archmrtg* -rwxr--r-- 1 root root 132 Jun 12 17:16 archmrtg.sh shaggy:~ #
...I am trying to run this file in CRON with this crontab entry:
31 17 * * * * /root/archmrtg.sh /db/shaggy_oravl01/opt/apache/htdocs/servers/laurel/
One to many * in the cron entry, there are only five fields for the date and time settings. Ken