From: hadi motamedi <motamedi24 at gmail.com> >I even tried to make it as an script file and made it executable > but still getting the following error: > 'syntax error near unexpected token 'done' Ok, last try... Did you copy/pasted my code? Did you type it? Saying just that there's a syntax error without showing the code you used does not help... JD