Bernard Blackham wrote: > Yep. Ideally there'd be some way to close all FDs, but I don't know > one yet and haven't looked hard. Can you be evil with /proc/self/fd? e.g. for x in /proc/self/fd/*; do if [ "$(basename $x)" -gt 2 ]; then eval "exec $x>&-" fi done Cameron