diff options
author | Matthew Somerville <matthew@mysociety.org> | 2011-06-10 00:13:33 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2011-06-10 00:13:33 +0100 |
commit | 7513161747fb9bd48eb67cc7a43e711e2a1b45a1 (patch) | |
tree | 392e384547b6ac5e80808022e9bc4f48ff893a7a /bin | |
parent | 7e844f25b99b1b2b76526a0490b5b9dea00b71df (diff) |
Simple cron wrapper to run in correct environment.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/cron-wrapper | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/cron-wrapper b/bin/cron-wrapper new file mode 100755 index 000000000..b93695cb0 --- /dev/null +++ b/bin/cron-wrapper @@ -0,0 +1,9 @@ +#!/usr/bin/env perl + +BEGIN { # set all the paths to the perl code + use FindBin; + require "$FindBin::Bin/../setenv.pl"; +} + +exec { $ARGV[0] } @ARGV; + |