Hi there!
Could anyone help me out with a shell script that should..
- sftp myuser@myhost
- cd public_html/misc/
- mkdir `date --date='1 day ago' +%Y_%m_%d`
- cd `date --date='1 day ago' +%Y_%m_%d`
- put /home/localuser/files/*.log
- quit
Shell script sftp
Moderator: General Moderators
Re: Shell script sftp
-b option?
-b batchfile
Batch mode reads a series of commands from an input
batchfile instead of stdin. Since it lacks user
interaction it should be used in conjunction with non-
interactive authentication. sftp will abort if any of
the following commands fail: get, rm, and lmkdir.
There are 10 types of people in this world, those who understand binary and those who don't