Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$ 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