how to create /dev/fd/# ?

2004-11-14 Thread Eugene M. Minkovskii
Hi! I'm working under FreeBSD 5.2.1

I was trying to create if-filter for /etc/printcap. So, I writing
some frome handbook:

exec 31 12
/usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=$GS_DEVICE \
-sOutputFile=/dev/fd/3 - -c quit

but, It's does not work --- there not device /dev/fd/3. Whn I
type in Linux

exec 31

in /dev/fd creating new node --- /dev/fd/3. But not in FreeBSD!
Now I am using temporary some work around for my printcap:

/usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=$GS_DEVICE \
-sOutputFile=- - -c quit

Who can tell me: why I can't create /dev/fd/3 (evenly under
root!), and what shell I do for create this?


-- 
Sensory  yours, Eugene  Minkovskii
 ,
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: how to create /dev/fd/# ?

2004-11-14 Thread Svein Halvor Halvorsen

[Eugene M. Minkovskii, 2004-11-14]
  Who can tell me: why I can't create /dev/fd/3 (evenly under
  root!), and what shell I do for create this?

see fdescfs(5)
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: how to create /dev/fd/# ?

2004-11-14 Thread Eugene M. Minkovskii
On Sun, Nov 14, 2004 at 09:37:44PM +0100, Svein Halvor Halvorsen wrote:
 
 [Eugene M. Minkovskii, 2004-11-14]
   Who can tell me: why I can't create /dev/fd/3 (evenly under
   root!), and what shell I do for create this?
 
 see fdescfs(5)

Ok, I was reading this, and what? What shell I do in the bash?

-- 
Sensory  yours, Eugene  Minkovskii
 ,
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: how to create /dev/fd/# ?

2004-11-14 Thread Conrad J. Sabatier
On Sun, 14 Nov 2004 23:59:24 +0300, Eugene M. Minkovskii
[EMAIL PROTECTED] wrote:

 On Sun, Nov 14, 2004 at 09:37:44PM +0100, Svein Halvor Halvorsen
 wrote: 
  [Eugene M. Minkovskii, 2004-11-14]
Who can tell me: why I can't create /dev/fd/3 (evenly under
root!), and what shell I do for create this?
  
  see fdescfs(5)
 
 Ok, I was reading this, and what? What shell I do in the bash?


Add the following to /etc/fstab:

fdescfs /dev/fd fdescfs rw  0   0

Then do mount fdescfs or mount /dev/fd.

-- 
Conrad J. Sabatier [EMAIL PROTECTED] -- In Unix veritas
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]