thanks for the replies, I'll give your script a shot birdguy. I have something similar.
ftp file
Code:
open ftp.mysite.com
user user pass
binary
lcd /home/unixbox/test
mget *.txt
mdelete *.txt
bye
$:~/test
then i invoke from a diff script with
Code:
ftp -vim < ftp file
I'm coming from windows on this and the cmd line ftp for windows doesn't have an option to remote del, I find the one supplied with linux to be better