added read timeout to unix shell