add cronjob * * * * * /usr/bin/env > /home/username/tmp/cron-env vi run-as-cron: #!/bin/bash /usr/bin/env -i $(cat /home/username/tmp/cron-env) "$@" then run: run-as-cron /the/problematic/script --with arguments --and parameters