[redis] use env to pass variables into the sub shells