{"action":"created","issue":{"url":"https://api.github.com/repos/online-net/c14-cli/issues/17","repository_url":"https://api.github.com/repos/online-net/c14-cli","labels_url":"https://api.github.com/repos/online-net/c14-cli/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/online-net/c14-cli/issues/17/comments","events_url":"https://api.github.com/repos/online-net/c14-cli/issues/17/events","html_url":"https://github.com/online-net/c14-cli/issues/17","id":201435908,"number":17,"title":"c14 with cron ?","user":{"login":"chico200987","id":13536647,"avatar_url":"https://avatars.githubusercontent.com/u/13536647?v=3","gravatar_id":"","url":"https://api.github.com/users/chico200987","html_url":"https://github.com/chico200987","followers_url":"https://api.github.com/users/chico200987/followers","following_url":"https://api.github.com/users/chico200987/following{/other_user}","gists_url":"https://api.github.com/users/chico200987/gists{/gist_id}","starred_url":"https://api.github.com/users/chico200987/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chico200987/subscriptions","organizations_url":"https://api.github.com/users/chico200987/orgs","repos_url":"https://api.github.com/users/chico200987/repos","events_url":"https://api.github.com/users/chico200987/events{/privacy}","received_events_url":"https://api.github.com/users/chico200987/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-17T23:25:17Z","updated_at":"2017-01-26T21:40:24Z","closed_at":null,"body":"I have some problem with a really simple script, executed by cron.\r\n\r\nHere is it, for testing : \r\n\r\n`\r\n#! /bin/bash\r\nc14 upload /tmp/2017-01-17-backup.tar.gz xxxx-xxxxx-xxxxx\r\n`\r\n\r\nI was logged as root and I setup this script using crontab -e. \r\n\r\nOn executing this script manually, everything is working fine, but when cron did it, i have this error on my mail : \r\n\r\n>  FATAL[0000] You need to specified a name\r\n\r\nCan you help me to solve this problem please ?\r\n\r\nThanks\r\n\r\nRegards"},"comment":{"url":"https://api.github.com/repos/online-net/c14-cli/issues/comments/275522555","html_url":"https://github.com/online-net/c14-cli/issues/17#issuecomment-275522555","issue_url":"https://api.github.com/repos/online-net/c14-cli/issues/17","id":275522555,"user":{"login":"coolya","id":407216,"avatar_url":"https://avatars.githubusercontent.com/u/407216?v=3","gravatar_id":"","url":"https://api.github.com/users/coolya","html_url":"https://github.com/coolya","followers_url":"https://api.github.com/users/coolya/followers","following_url":"https://api.github.com/users/coolya/following{/other_user}","gists_url":"https://api.github.com/users/coolya/gists{/gist_id}","starred_url":"https://api.github.com/users/coolya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coolya/subscriptions","organizations_url":"https://api.github.com/users/coolya/orgs","repos_url":"https://api.github.com/users/coolya/repos","events_url":"https://api.github.com/users/coolya/events{/privacy}","received_events_url":"https://api.github.com/users/coolya/received_events","type":"User","site_admin":false},"created_at":"2017-01-26T21:40:24Z","updated_at":"2017-01-26T21:40:24Z","body":"I think the problem is that when stdin is not a terminal the upload command always assumes that its in piped mode. Which is the case when its executed by cron.\r\n\r\nhttps://github.com/online-net/c14-cli/blob/master/pkg/commands/upload.go#L54"}}
{"actor":{"display_login":"coolya"}}