And following is another question: Why removing "%s" in this line made all the rest of the script working? It also contains a lot of calls to printf with "%s" and all they worked fine!!?? Leon