I\'m using key authentication, so password is not an issue. I have a file whose name I know and I simply want to send it to another machine over sftp.
I tried searching
You said that you are not interested in other tools, but scp is a much better choice for unattended file transfers. Here is an scp example:
scp
scp test.txt root@remote:/root/dropoff