Summary : script for cron

From: Swee-Chuan Khoo (sckhoo@emtds1.nsc.com)
Date: Tue Apr 26 1994 - 12:53:05 CDT


>
> hi,
> I have a script file (attached) I need to put in as a cronjob to run every
> day before I come in to work. This script basically list all the partition
> on the tape to a file.
>
> This is how the crontab file looks like.
>
> 0 7 * * 1-5 /bin/sh /home/User3/user/a
>
> But it doesn't work. Any help?
>
> Thanks.
>
The response were very very helpful and fast too. I am really glad I join
this list, it definitely beat all the training.

What did I do?

1) remove the /bin/sh from the crontab file
   - Yes, the 1-5 will work.
   - little typo error on my side, sorry
     should be
        VERIFY=`tail -f /tmp/out | awk '{print $1}'`

2) in the script file, put in the full path name for the command
   mt and restore. Script run from cron without path setting.

3) make sure the cronjob owner have the execute right for the file.

Step 1, 2 makes it works. Thanks guys.

----------------------------------------
The Heroes
----------------------------------------
Daniel Baldoni flint@cs.curtin.edu.au
tommy@big.att.com
jeff@erie.irc.nrc.ca
mike_wagner@il.us.swissbank.com (Mike Wagner)
Mike Raffety <mike_raffety@il.us.swissbank.com>
jamervi@sandia.gov (1236 Joseph A. Mervini)
vasey@issi.com
Gregory Bond <gnb@melba.bby.com.au>
cecilp@vancouver.cantel.rogers.com (Cecil Pang)
highscc!jb@nsc.nsc.com (Jon Bowman)
------------------------------------------

Swee-Chuan Khoo
System Administrator
NS Melaka, Malaysia
                     |^^^^^^|
                     | |
                     | |
                     | (o)(o) _____________________________
                     @ _) __/ |
                      | ,___| /___ I didn't do it, |
                      | / \ nobody saw me do it, |
                     /____\ \ you can't prove anything |
                    / \ \___________________________|



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:08:59 CDT