SUMMARY: Problem with Cron

From: Don Mies <dmies_at_bluekite.com>
Date: Wed Oct 24 2001 - 15:09:55 EDT
Thanks to everyone that responded to my email on my problem
running cron.  Most of the respondents assumed that there was
something wrong with my script which turned out not to be the
case.  The script was never even being executed.

Thanks to Sharon Boland and John Leadeham for coming up with
the real problem.  My system was missing the file "/etc/project"
which appears to be something new in Solaris 8.  John supplied
the contents of his file and when I put that in place, everything
worked fine.

For those of you that are curious, here is what is in the file:

    % cat /etc/project
    system:0::::
    user.root:1::::
    noproject:2::::
    default:3::::
    group.staff:10::::

Thanks to you all!

    Adrian Stovall
    Dan (dana@dtn.com)
    Eduardo Kraemer Goes
    Greg (gabramov@cpe.uchicago.edu)
    John Leadeham
    Larry Snyder
    Mathew K.
    Matt M. Morris
    R. Marc Baldus
    Sharon Boland
    Steve Hastings

Don Mies

--------------------------------------------------------------------

I'm having a problem with cron on one of my machines.  It works fine
on all the other machines I have tried it on except this particular
one.

I have a very simple script:

------

#! /bin/sh

echo "This is a test at `date`" >> /tmp/cronTest

------

The crontab entry for this test is:

0,5,10,15,20,25,30,35,40,45,50,55 * * * * /export/home/user/cronTest


This crontab entry should run the above script every 5 minutes.

I get NOTHING in the /tmp/cronTest file.  In fact, the file is never
even created.

The /var/cron/log file looks like:

------

! unexpected pid returned 13516 (ignored) Tue Oct 23 13:00:01 2001
! unexpected pid returned 13554 (ignored) Tue Oct 23 13:05:00 2001
! unexpected pid returned 13760 (ignored) Tue Oct 23 13:10:00 2001

------

If I run the crontab as root, I get absolutely nothing but if I run
it as a user, I get a mail message sent to me that says:

------

Subject: Couldn't run your "cron" job
Content-Length: 118

Your "cron" job on kuna couldn't be run
can't set project id for your job.
The error was "No such file or directory"

------

I have no idea what it means by "project id" in the above email.

Can anyone shed any light on this?

Thanks in advance!


Don

-- 
This e-mail contains information intended only for the use
of the individual or entity named above.  If the reader of
this e-mail is not the intended recipient or the employee
or agent responsible for delivering it to the intended
recipient, any dissemination, publication or copy of this
e-mail is strictly prohibited.  If you have received this
e-mail in error, please immediately notify the sender.

Thank you.
Received on Wed Oct 24 20:09:55 2001

This archive was generated by hypermail 2.1.8 : Wed Mar 23 2016 - 16:32:34 EDT