{"action":"created","issue":{"url":"https://api.github.com/repos/webmin/webmin/issues/856","repository_url":"https://api.github.com/repos/webmin/webmin","labels_url":"https://api.github.com/repos/webmin/webmin/issues/856/labels{/name}","comments_url":"https://api.github.com/repos/webmin/webmin/issues/856/comments","events_url":"https://api.github.com/repos/webmin/webmin/issues/856/events","html_url":"https://github.com/webmin/webmin/issues/856","id":304118276,"number":856,"title":"Webmin is adding an extra '\\' to a cron command","user":{"login":"FBachofner","id":22858382,"avatar_url":"https://avatars0.githubusercontent.com/u/22858382?v=4","gravatar_id":"","url":"https://api.github.com/users/FBachofner","html_url":"https://github.com/FBachofner","followers_url":"https://api.github.com/users/FBachofner/followers","following_url":"https://api.github.com/users/FBachofner/following{/other_user}","gists_url":"https://api.github.com/users/FBachofner/gists{/gist_id}","starred_url":"https://api.github.com/users/FBachofner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FBachofner/subscriptions","organizations_url":"https://api.github.com/users/FBachofner/orgs","repos_url":"https://api.github.com/users/FBachofner/repos","events_url":"https://api.github.com/users/FBachofner/events{/privacy}","received_events_url":"https://api.github.com/users/FBachofner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-03-11T00:26:13Z","updated_at":"2018-03-12T03:53:47Z","closed_at":null,"author_association":"NONE","body":"I've been working on finding out why a cron job fires but is truncated.  I added this job using Webmin.  The command:\r\n`/usr/sbin/rtcwake -m mem -l -t $(date +\\%s -d 'tomorrow 07:20')`\r\n\r\nfires at the correct time, but /var/logs/syslog shows it is truncated to:\r\n`/usr/sbin/rtcwake -m mem -l -t $(date +\\`\r\n\r\nIt turns out Webmin has added a **_second_** `'\\'` to the command (seen when using `sudo crontab -e` )\r\n\r\nMeanwhile, if using Webmin's \"run\" or \"save and run\" buttons, the \"cron\" job runs just fine (i.e. on demand, not _cron_ed.\r\n\r\nALSO, if I take out the backslash and create a cron job using Webmin like this:\r\n`/usr/sbin/rtcwake -m mem -l -t $(date +%s -d 'tomorrow 07:20')`  [ note the _missing_ `'\\'` before %s, which is NOT proper form for the command ], `sudo crontab -e` shows Webmin has added the `'\\'` in the correct place.\r\n\r\nmore complete discussion here:\r\nhttps://askubuntu.com/questions/1012587/cron-job-firing-but-command-is-truncated-after\r\n\r\nThis seems to be a bug in Webmin"},"comment":{"url":"https://api.github.com/repos/webmin/webmin/issues/comments/372187278","html_url":"https://github.com/webmin/webmin/issues/856#issuecomment-372187278","issue_url":"https://api.github.com/repos/webmin/webmin/issues/856","id":372187278,"user":{"login":"jcameron","id":102706,"avatar_url":"https://avatars2.githubusercontent.com/u/102706?v=4","gravatar_id":"","url":"https://api.github.com/users/jcameron","html_url":"https://github.com/jcameron","followers_url":"https://api.github.com/users/jcameron/followers","following_url":"https://api.github.com/users/jcameron/following{/other_user}","gists_url":"https://api.github.com/users/jcameron/gists{/gist_id}","starred_url":"https://api.github.com/users/jcameron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcameron/subscriptions","organizations_url":"https://api.github.com/users/jcameron/orgs","repos_url":"https://api.github.com/users/jcameron/repos","events_url":"https://api.github.com/users/jcameron/events{/privacy}","received_events_url":"https://api.github.com/users/jcameron/received_events","type":"User","site_admin":false},"created_at":"2018-03-12T03:53:47Z","updated_at":"2018-03-12T03:53:47Z","author_association":"COLLABORATOR","body":"You can see what config files are really being edited at Webmin -> Webmin Actions Log. However, in general we aim to hide these kinds of implementation details.\r\n"}}
{"actor":{"display_login":"jcameron"}}