fix bug

tail not work in linux. sprint history cant work