Skip to content

Instantly share code, notes, and snippets.

@malclocke
Created August 11, 2014 22:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save malclocke/b22921374151cc0c1993 to your computer and use it in GitHub Desktop.
Save malclocke/b22921374151cc0c1993 to your computer and use it in GitHub Desktop.
$ heroku run bash
Running `bash` attached to terminal... up, run.6771
~ $ ls -l /dev/stdin
lrwxrwxrwx 1 root root 15 2014-08-11 22:31 /dev/stdin -> /proc/self/fd/0
~ $ ls -l /proc/self/fd/0
lrwx------ 1 u51787 51787 64 2014-08-11 22:31 /proc/self/fd/0 -> /dev/pts/1
~ $ id
uid=51787(u51787) gid=51787
~ $ echo echo | cat
echo
~ $ echo echo | cat /dev/stdin
echo
~ $ cat /dev/stdin
cat: /dev/stdin: Permission denied
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment