Author Topic: anyone know crontab?  (Read 138 times)

soop

  • Hero Member
  • *****
  • Posts: 2828
anyone know crontab?
« on: June 27, 2012, 03:11:00 AM »
Weird question here, but since most people here are quite techy, I thought I'd just throw this out.

I have a shell script that I run every night at 6am which calls a bunch of other stuff like expect scripts, awk scripts, php and mysql, and it takes a while to complete (an hour + at least).

Well I've just had a look at the database it creates, noticed some missing information, then run the script and saw the info that should have been there, which indicates it's not running.

The crontab is under the same user I just used, and gives an absolute path to the shell script.  I'm sure the notation is right, but might I need absolute paths in every script the shell script calls?  In which case, cding to the directory within cron should work (if I don't have absolute paths).

It's a f*cking huge script I knocked together when I first got here, so to change it now would probably be a bit of a mission.

*edit* never mind, it was the relative links in the sub scripts.
« Last Edit: June 27, 2012, 03:44:45 AM by soop »