aboutsummaryrefslogtreecommitdiffstats
path: root/bin/cron-wrapper
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-06-10 00:13:33 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-06-10 00:13:33 +0100
commit7513161747fb9bd48eb67cc7a43e711e2a1b45a1 (patch)
tree392e384547b6ac5e80808022e9bc4f48ff893a7a /bin/cron-wrapper
parent7e844f25b99b1b2b76526a0490b5b9dea00b71df (diff)
Simple cron wrapper to run in correct environment.
Diffstat (limited to 'bin/cron-wrapper')
-rwxr-xr-xbin/cron-wrapper9
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;
+