Help for this page

Select Code to Download


  1. or download this
    [me@host bin]$ perl -we 'open STDERRIN,"+<&STDERR" or die $!; my $line
    + = <STDERRIN>;  print STDERRIN "YAY!!! $line";'
    asdfasf
    YAY!!! asdfasf
    [me@host bin]$
    
  2. or download this
    ls -l /proc/self/fd/
    
  3. or download this
    ls -l /proc/self/fd/ < /dev/null
    ls -l /proc/self/fd/ | cat
    ls -l /proc/self/fd/ 2> /dev/null   #redrect STDERR
    
  4. or download this
    open TTY, ">/dev/tty" or die "Couldn't open /dev/tty $!";