The Analogue Turbo Duo clone shipped in time for Christmas 2023. Are you happy with yours ?? Find firmware updates here.
IMG
Main Menu

anyone know crontab?

Started by soop, 06/27/2012, 10:11 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

soop

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 fucking 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.
Quote from: esteban on 04/26/2018, 04:44 PMSHUTTLECOCK OR SHUFFLE OFF!