How do I detect output redirection?

Bernd Bausch bbausch at hpbbse.HP.COM
Tue Jun 27 06:15:50 AEST 1989


	Try the fstat system call.
	It returns information about a file, given a file descriptor.
	If you want to see whether two files are identical, check their
	device and inode number. I don't know how this works under NFS,
	though.

	Bernd.



More information about the Comp.unix.questions mailing list