unix script tool , tty logging