2009-04-02 18:12:57     stdio devices not in /dev

Document created by Aaronwu Employee on Aug 14, 2013
Version 1Show Document
  • View in full screen mode

2009-04-02 18:12:57     stdio devices not in /dev

Rob Maris (GERMANY)

Message: 72079   

 

I'm missing stdin, stdout and stderr in /dev. However, devices do operate (through serially connecte terminal, as usual). I need these devices for proper redirection.

 

My host linux provides these devices. I don't know what to do in configuration in order to get it.

QuoteReplyEditDelete

 

 

2009-04-02 18:28:15     Re: stdio devices not in /dev

Mike Frysinger (UNITED STATES)

Message: 72080   

 

they are common distro conventions, not created as anything standard

 

you can add the corresponding `ln -s` commands to your /etc/rc file

 

$ ls -l /dev/std*

lrwxrwxrwx 1 root root 4 2009-03-23 13:57 /dev/stderr -> fd/2

lrwxrwxrwx 1 root root 4 2009-03-23 13:57 /dev/stdin -> fd/0

lrwxrwxrwx 1 root root 4 2009-03-23 13:57 /dev/stdout -> fd/1

$ ls -l /dev/fd

lrwxrwxrwx 1 root root 13 2009-03-23 13:57 /dev/fd -> /proc/self/fd

QuoteReplyEditDelete

 

 

2009-04-02 18:40:44     Re: stdio devices not in /dev

Mike Frysinger (UNITED STATES)

Message: 72081   

 

probably like so:

blackfin.uclinux.org/gf/project/uclinux-dist/scmsvn/?action=browse&path=/trunk/vendors/AnalogDevices/common/rc&r1=7954&r2=7953&pathrev=7954

QuoteReplyEditDelete

 

 

2009-04-02 19:26:50     Re: stdio devices not in /dev

Rob Maris (GERMANY)

Message: 72082   

 

Thanks,

 

however, I needed some time to figure out how to establish this:

 

ln -s fd/0 /dev/stdin

ln -s fd/1 /dev/stdout

ln -s fd/2 /dev/stderr

ln -s /proc/self/fd /dev/fd

 

However, it did not resolve my problem (which resulted now in an update of two eclipse pages where I finally suggest a suboptimal way to start a program remotely while keeping the program's printf() output locally). 

Attachments

    Outcomes