Using crontab to execute script every minute and another every 24 hours [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 8 years ago. Improve this question I need a crontab syntax which should execute a specific PHP script /var/www/html/a.php every minute. The execution on every … Read more

Where can I set environment variables that crontab will use?

I have a crontab running every hour. The user running it has environment variabless in the .bash_profile that work when the user runs the job from the terminal, however, obviously these don’t get picked up by crontab when it runs. I’ve tried setting them in .profile and .bashrc but they still don’t seem to get … Read more