LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   sftp script error (https://www.linuxquestions.org/questions/linux-networking-3/sftp-script-error-120395/)

JeRrYmAn 11-27-2003 04:53 AM

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?

jailbait 11-27-2003 07:21 PM

"the problem is that sftp does not exit on 'bye' or 'exit' or 'quit'"

Try: <cntrl> <c>

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites


All times are GMT -5. The time now is 02:07 PM.