Possibly the issue with your script is that you have an extra "done" in the middle of it. Your main loop will only ever produce one picture, scp it, then the script will exit (possibly with a syntax ...
Ok, so the second one first: Is there any particular method for pulling a filename from a url when it is not specified in the http headers? Right now, I'm ...