how to redirect in bash+crontab
Geoff Shang
geoff at QuiteLikely.com
Tue Jul 24 23:57:04 IDT 2012
On Tue, 24 Jul 2012, Oleg Goldshmidt wrote:
> I would be curious to know how recent versions of
> SuSE/debian/ubuntu/*BSD/Mac OS X/whatever implement /dev/stderr.
Debian 6.0 (current stable):
lrwxrwxrwx 1 root root 15 Jun 18 16:37 /dev/stderr -> /proc/self/fd/2
lrwx------ 1 root root 64 Jul 24 23:50 /proc/self/fd/2 -> /dev/tty5
crw------- 1 root tty 4, 5 Jul 24 23:53 /dev/tty5
I was on tty5 at the time.
Mac OS X 10.7 (Lion):
lr-xr-xr-x 1 root wheel 0 Jun 18 16:33 /dev/stderr -> fd/2
crw--w---- 1 geoff tty 16, 0 Jul 24 23:50 /dev/fd/2
I was logged in over an SSH connection for this one, so decided to look at
a Debian (Stable) box that I was also SSH'd into:
lrwxrwxrwx 1 root root 15 Apr 28 07:46 /dev/stderr -> /proc/self/fd/2
lrwx------ 1 mintfm mintfm 64 Jul 24 21:53 /proc/self/fd/2 -> /dev/pts/0
crw--w---- 1 mintfm tty 136, 0 Jul 24 21:55 /dev/pts/0
Guess which TTY I was logged in on.
HTH,
Geoff.
More information about the Linux-il
mailing list