For my shell, I should be able to look up what file STDOUT is, right?
cmiller@zippy:~$ uname -r 2.6.32-22-generic cmiller@zippy:~$ stat /proc/$$/fd/1 File: `/proc/21605/fd/1' -> `/dev/pts/5' Size: 64 Blocks: 0 IO Block: 1024 symbolic link Device: 3h/3d Inode: 6608958 Links: 1 Access: (0700/lrwx------) Uid: ( 1000/ cmiller) Gid: ( 1000/ cmiller) Access: 2010-06-03 14:11:04.185148680 -0400 Modify: 2010-06-03 14:11:04.185148680 -0400 Change: 2010-06-03 14:11:04.185148680 -0400
cmiller@hypatia:~$ uname -r 2.6.34-5-generic cmiller@hypatia:~$ stat /proc/$$/fd/1 File: `/proc/6730/fd/1' stat: cannot read symbolic link `/proc/6730/fd/1': Permission denied Size: 64 Blocks: 0 IO Block: 1024 symbolic link Device: 3h/3d Inode: 285538 Links: 1 Access: (0700/lrwx------) Uid: ( 1000/ cmiller) Gid: ( 1000/ cmiller) Access: 2010-06-03 14:11:09.655650313 -0400 Modify: 2010-06-03 14:11:09.655650313 -0400 Change: 2010-06-03 14:11:09.655650313 -0400
For my shell, I should be able to look up what file STDOUT is, right?
cmiller@zippy:~$ uname -r
2.6.32-22-generic
cmiller@zippy:~$ stat /proc/$$/fd/1
File: `/proc/21605/fd/1' -> `/dev/pts/5'
Size: 64 Blocks: 0 IO Block: 1024 symbolic link
Device: 3h/3d Inode: 6608958 Links: 1
Access: (0700/lrwx------) Uid: ( 1000/ cmiller) Gid: ( 1000/ cmiller)
Access: 2010-06-03 14:11:04.185148680 -0400
Modify: 2010-06-03 14:11:04.185148680 -0400
Change: 2010-06-03 14:11:04.185148680 -0400
cmiller@hypatia:~$ uname -r
2.6.34-5-generic
cmiller@hypatia:~$ stat /proc/$$/fd/1
File: `/proc/6730/fd/1'
stat: cannot read symbolic link `/proc/6730/fd/1': Permission denied
Size: 64 Blocks: 0 IO Block: 1024 symbolic link
Device: 3h/3d Inode: 285538 Links: 1
Access: (0700/lrwx------) Uid: ( 1000/ cmiller) Gid: ( 1000/ cmiller)
Access: 2010-06-03 14:11:09.655650313 -0400
Modify: 2010-06-03 14:11:09.655650313 -0400
Change: 2010-06-03 14:11:09.655650313 -0400