You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mesos.apache.org by klueska <gi...@git.apache.org> on 2016/07/07 20:27:44 UTC

[GitHub] mesos issue #130: Avoid 'Permission denied' error with 'sudo cat >'

Github user klueska commented on the issue:

    https://github.com/apache/mesos/pull/130
  
    Looks good to me.  To summarize the issue that he's fixing a bit more clearly. Just running:
    ```
    sudo cat > /etc/yum.repos.d/wandisco-svn.repo
    ```
    Doesn't actually do what's intended because anything after the redirect (i.e. the `>`) isn't picked up by the sudo.  We need to run `bash -c "<argument>"` instead so that sudo launches a subshell and the redirect happens inside the subshell.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---