sftp script error
I've written a simple batch that look like this:
----------------------------------------------------------
cd /home/user/files
get test.dat
bye
----------------------------------------------------------
Now in a script i've written i use the batch like this:
----------------------------------------------------------
date
cd /usr/local/files
sftp -b batchfile user@server
----------------------------------------------------------
the problem is that sftp does not exit on 'bye' or 'exit' or 'quit'
how do i fix this?
|