I created two simple cron scripts on a new installation of Ubuntu 14.04 amd64 with all updates installed (the only additional package I installed was cifs-utils).
/etc/cron.daily/testenv-daily: #!/bin/sh logger -t testenv-daily "http_proxy=$http_proxy"
/etc/cron.hourly/testenv-hourly: #!/bin/sh logger -t testenv-hourly "http_proxy=$http_proxy"
Here are the respective lines of /var/log/syslog:
May 15 09:38:32 wkjpvm6 testenv-daily: http_proxy= May 15 10:17:01 wkjpvm6 testenv-hourly: http_proxy=http://proxy.krz.uni-heidelberg.de:8080/
I have no idea why the enviroment is set for hourly cron jobs but not for daily cron jobs.
I created two simple cron scripts on a new installation of Ubuntu 14.04 amd64 with all updates installed (the only additional package I installed was cifs-utils).
/etc/cron. daily/testenv- daily: $http_proxy"
#!/bin/sh
logger -t testenv-daily "http_proxy=
/etc/cron. hourly/ testenv- hourly: $http_proxy"
#!/bin/sh
logger -t testenv-hourly "http_proxy=
Here are the respective lines of /var/log/syslog:
May 15 09:38:32 wkjpvm6 testenv-daily: http_proxy= proxy.krz. uni-heidelberg. de:8080/
May 15 10:17:01 wkjpvm6 testenv-hourly: http_proxy=http://
I have no idea why the enviroment is set for hourly cron jobs but not for daily cron jobs.