Date: 03-06-03 06:34
Well, the file -is- plain text and -is- a single line
ie echo password > whatever-file-you want
Nevermind, I've skipped on ssh for now and am just using the rsync protocol in the daily shell script. It seems to work ok with that, without using the --password-file, and by setting the password as an environment variable (Yes, it clears the environment var directly after use, though I still know this is not as secure as it could be). Seems to work ok. I've also fixed up another problem I was havng where rsync would drop out frequently, and throw a time out error with a relatively generous time out. using the bwlimit parameter and allowing for a few kbps fixed it right up. Probably something to do with the slow response of some sort of ack in one direction or the other.
Basically on a 512k/128k ADSL connection, it would of been sending out at about 12-13k/s max. Restricting this to 9k/s allowing some k's left for other services (and perhaps something this protocol uses to acknowledge transfer? I'm not sure how it works exactly) and got rid of any time out issues that occured.