Hi Apps, Thank you for a point in the right direction but do you have any idea how I tell the script:

"Can you connect to port 21? If so please do this script, If not give me an error"?

Sorry if I am missing the obvious

Cheers,
Dan