I have a .ksh script that creates an sftp batch file and runs it through sftp. It works except for one thing. If I try to "put" to a different name, it doesn't use the specified remote name...it still "puts" the original local name.
I've tried both of these, and neither work...it will always put the local name to the remote path:
cd remotepath
lcd localpath
put localfile remotefile
The mv command doesn't work either...no error or warning...simply does nothing.
I modified my script to copy and name change the file to a local working folder, then sftp and that works...just weird that the put and mv in sftp aren't working.
Looking forward to the day where I don't have the option of renaming the file locally...
As for upgrading, I work for a major corporation with dozens of Unix servers all over the country all run by different people, different expense codes, different versions of the OS, etc, etc...so I'll grow wings and fly to Mars before I'll be able to get them to upgrade anything.