I am totally new to this forum so if I am asking this and it has already been asked I apologize, but I have yet to have time to figure out how to search effectively for answers in previous posts. I'll figure it out tomorrow I just wanted to get this out there in case there is someone with this knowledge just bubbling out of their head aching to share it.
ANYWAY:
I am trying to script an sftp cron job. My first hurdle was to get key authentication working so I wouldn't have to deal with the issues surrounding giving it a password from within a script. That was fun, and it works now. I was trying to treat it like ftp and use the EOF arguments to get it to read the commands but it is not working. Do I have to use a batch file to send commands to sftp in a script? If so does anyone know where I could get some examples of how to do that (ie make a batch file). Or if I don't have to use a batch file could someone point me toward some examples of how to script commands for sftp.
Thanks in advance,
New_Guru