I'm surprised no one has mentioned ioctl(0,TIOCSTI,...). You can change the parent's directory that way too. Maybe no one mentioned it because it is `not recommended'. I don't recommend it either, but mention it for completeness. Nilbert T Bignum <rbj at nav.icst.nbs.gov> NTSI: Never Twice the Same Institute