> I'm not sure why but cron isn't working for me.  I read the man page

If you're new to solaris, where are you coming from?

I have found, the environment of a job run by "cron" is different from a job
in "at" is different from your login prompt.  All of these are different
from the way they would have been in linux or some other platform.  And even
if you go from RHEL4 to RHEL5 or whatever ... All these things are just
ridiculously inconsistent.  So I use the following trick to get a more
consistent environment wherever I go.

It is very easy for a slight misunderstanding of your environment to cause
you to think cron isn't working, when in fact it is.  It's just not doing
what you thought.

I don't know precisely what your requirements are, but I'll bet the
following will work, and will get you off to a start:

Create a file called .crontab (or whatever you like) with the following line
(or something appropriate for your environment) in it:
* * * * * /usr/bin/bash -cl '/usr/bin/date > /timestamp.txt 2>&1'

Then install it as your personal crontab.
crontab .crontab

_______________________________________________
opensolaris-help mailing list
opensolaris-help@opensolaris.org

Reply via email to