cache and method of running bash script