fix quote for eval command and remove 'tail -r'