{"action":"created","issue":{"url":"https://api.github.com/repos/yii2tech/crontab/issues/7","repository_url":"https://api.github.com/repos/yii2tech/crontab","labels_url":"https://api.github.com/repos/yii2tech/crontab/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/yii2tech/crontab/issues/7/comments","events_url":"https://api.github.com/repos/yii2tech/crontab/issues/7/events","html_url":"https://github.com/yii2tech/crontab/issues/7","id":136064806,"number":7,"title":"crontab can not run","user":{"login":"bubifengyun","id":4437214,"avatar_url":"https://avatars.githubusercontent.com/u/4437214?v=3","gravatar_id":"","url":"https://api.github.com/users/bubifengyun","html_url":"https://github.com/bubifengyun","followers_url":"https://api.github.com/users/bubifengyun/followers","following_url":"https://api.github.com/users/bubifengyun/following{/other_user}","gists_url":"https://api.github.com/users/bubifengyun/gists{/gist_id}","starred_url":"https://api.github.com/users/bubifengyun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bubifengyun/subscriptions","organizations_url":"https://api.github.com/users/bubifengyun/orgs","repos_url":"https://api.github.com/users/bubifengyun/repos","events_url":"https://api.github.com/users/bubifengyun/events{/privacy}","received_events_url":"https://api.github.com/users/bubifengyun/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-24T13:42:52Z","updated_at":"2016-02-24T13:55:00Z","closed_at":null,"body":"I find that the command will not execute .\r\n\r\nI search and find that if I add this two lines in the head.\r\n\r\n```bash\r\nSHELL=SHELL\r\nPATH=/usr/bin:<and others>\r\nyii crontab/index\r\n```\r\n\r\nit will run this command\r\n\r\n```bash\r\nyii crontab/index\r\n```\r\n\r\nor, it will not run. others command will execute, such as `echo $PATH > /tmp/test`\r\n\r\nso could you open the `applyLines()` as `public` for whom cannot execute the command?\r\n\r\nthank you."},"comment":{"url":"https://api.github.com/repos/yii2tech/crontab/issues/comments/188264867","html_url":"https://github.com/yii2tech/crontab/issues/7#issuecomment-188264867","issue_url":"https://api.github.com/repos/yii2tech/crontab/issues/7","id":188264867,"user":{"login":"bubifengyun","id":4437214,"avatar_url":"https://avatars.githubusercontent.com/u/4437214?v=3","gravatar_id":"","url":"https://api.github.com/users/bubifengyun","html_url":"https://github.com/bubifengyun","followers_url":"https://api.github.com/users/bubifengyun/followers","following_url":"https://api.github.com/users/bubifengyun/following{/other_user}","gists_url":"https://api.github.com/users/bubifengyun/gists{/gist_id}","starred_url":"https://api.github.com/users/bubifengyun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bubifengyun/subscriptions","organizations_url":"https://api.github.com/users/bubifengyun/orgs","repos_url":"https://api.github.com/users/bubifengyun/repos","events_url":"https://api.github.com/users/bubifengyun/events{/privacy}","received_events_url":"https://api.github.com/users/bubifengyun/received_events","type":"User","site_admin":false},"created_at":"2016-02-24T13:55:00Z","updated_at":"2016-02-24T13:55:00Z","body":"sorry for my bad English.\r\n\r\nI do as follows, run as root.\r\n\r\n```bash\r\ncrontab -u daemon -e\r\n```\r\n\r\nadd this two lines copying from `/etc/crontab`.\r\nsave and exit, it will work well."}}