> Sorry to be a nag, but does anyone have any ideas on this? The script > output appears valid to me - right now it just spits out two numbers ie: > > 0 > 29 Are you completely sure it is outputting 0\n29\n\n\n (obviously \n is a newline)? Although lines 3&4 can be blank, they still need to exist. This might be the cause of the problems. Steve