German Guillot wrote:
Hello All,

I'm on mdk 10 OE. I've put a little bash script in /home/ger/bin/,
added that directory to my path, created a crontab for myself with
crontab (it's now /var/spool/cron/ger), added my whole $PATH to it,
created /etc/cron.allow and even /var/spool/cron/cron.allow with my
user name in it, restarted cron with /etc/rc5.d/S90crond restart (even
though I don't think that's even necessary), the woiks. I even added a
line to /etc/crontab (now removed). I've read all I can find on cron,
and it should be running my script.

Well, it an't.

The script works, I can run it from the command line. But I don't want
that, I need it to work at specified times on it's own. What am I
missing?

Thanks for your help,
Germán.

You might want to try adding a PATH=<whatever your path is> before the first command in the script. I am not sure how you added the path to the crontab entry, but it doesn't sound like your script is using it. If it is using the default path, then it will not find any programs that are not in /bin or /usr/bin. A couple of other things to be carefull of

- some programs do not work well if you do not have an active ternimal.
- when run by crontab, you have a very limmited set of varables set.

If you would post your crontab entry, and your script, we may be able to give you more specific help. (Any error mail from crontab also...)

Mikkel
--

  Do not meddle in the affairs of dragons,
for you are crunchy and taste good with Ketchup!

____________________________________________________
Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com
____________________________________________________

Reply via email to