there is an example and associated discussion of doing this sort of
wedging (similar to screen or script, as mentioned in another post) in
W. Richard Stevens' "Advanced Programming in the UNIX Environment".
also i think 'expect' may be a useful utility to look at for an example.
good luck, it sounds like a very worthwhile project you are working on.
-- R N G G "Well, there it goes again... And we just sit I G G G here without opposable thumbs." -- gary larson - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to email@example.com More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/