Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Operating System - Tru64 Unix
cancel
Showing results for 
Search instead for 
Did you mean: 

Crontab not running

chaps_78
Occasional Visitor

Crontab not running

We recently installed solaris 10 but seems crontab is not working for the user we use.
1) i checked , the user name (unixadm2) is not in cron.deny,
2) cron file (unixadm2) is there with proper permissins in /var/spool/cron/crontabs ,
3) am running a simple command in crontab file, as follows :
* * * * * date >> /var/tmp/date_test_$$
5) interestingly, for the other user, unixadm1, the crontab works fine (on same server)
4) the crontab file was created via crontab -e command.
5) ps -ef | grep cron command gives the following output
root 29835 1 0 May 21 ? 0:24 /usr/sbin/cron

I am at loss as to where the problem lies, seems the crontab scheduler is not even starting ?
can someone please help me asap?
4 REPLIES
Steven Schweda
Honored Contributor

Re: Crontab not running

> I am at loss [...]

Apparently. Have you tried:

http://sunsolve.sun.com
http://www.sun.com/bigadmin/home/index.html

?

If the problem is specific to a particular
user, you might verify things like whether
that user has a valid home directory with
proper owner and permissions, whether that
user has a valid shell, can receive e-mail,
and so on.

> [...] date [...]

For a test, I'd try "/bin/date" (or whatever
it actually is).
Mark Poeschl_2
Honored Contributor

Re: Crontab not running

And this query was posted in an HP Tru64 Unix forum why exactly? ;-)
Steven Schweda
Honored Contributor

Re: Crontab not running

Exactly. Normally, the Solaris questions go
to the HP-UX forum.
Ivan Ferreira
Honored Contributor

Re: Crontab not running

If all users write to the same file:

date >> /var/tmp/date_test_$$

Ensure that the file has the right permissions ro allow all users write access.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?