473,396 Members | 2,151 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Problem While doing Sftp

Hi Friends,

I tried to send some zips from local to remote location but the transfer is not sucess i can transfer the zips partially can some one assist me how to make it
as sucess

i had used the below code
Expand|Select|Wrap|Line Numbers
  1. #!/bin/sh
  2.  
  3. /usr/local/bin/expect <<EOF
  4.  
  5. spawn  sftp USERNAME@IPADDRESS
  6. expect "password:"
  7. send "Tgsf324a \r"
  8. expect "sftp> "
  9. send "cd /nas_ftp5/Customer/Troy/tbscclm/tmp/BSSFtp \r"
  10. expect "sftp> "
  11. send "lcd /forms/bscclmsa/outdata/bsca/b2collate/its/ready \r"
  12. expect "sftp> "
  13. send "put HOV_CLM_ATT_bsc20090223010100.md5 \r"
  14. expect "sftp> "
  15. send "lcd /forms/bscclmsa/outdata/bsca/b2collate/its/ready \r"
  16. expect "sftp> "
  17. send "put HOV_CLM_ATT_bsc20090223010100.zip \r"
  18. expect "sftp> "
  19. send "ls \r"
  20. expect "sftp> "
  21. send "bye "
  22. EOF
  23.  
Thanks in advance
siva
Feb 24 '09 #1
2 3806
gpraghuram
1,275 Expert 1GB
Hi,
R u getting any error when running the script?
Means when the file is uploaded did u get any error?
Do the normal FTP or scp works?

Raghu
Feb 25 '09 #2
If you're using sftp, why not use scp: http://www.hypexr.org/linux_scp_help.php
Mar 6 '09 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Peter A. Schott | last post by:
Does the ftplib support SFTP or FTPS? Is that part of a different module? We have a handful of partners who use FTPS or SFTP and I need to pull/push files to/from them. Thank you for all of...
3
by: Gus M. Creces | last post by:
Hi... I'm looking for some information, technical, white paper - whatever - on how SFTP works. I need to add SFTP capabilities into an app's present FTP capabilities. I'm not really looking for a...
4
by: Luke Vogel | last post by:
I've looked everywhere ... Is there anywhere that has the source code for a SFTP client that I can modify for my needs? Please? -- Regards Luke. -----
2
by: Mike | last post by:
Hi , I know that my question not for this group , only in case if somebody know : how does sftp works (main principals), what do I need to install to trasfrer files using sftp (I need only...
7
by: RadhakrishnanR | last post by:
How i can implement SFTP in VB. Scenario is I want to take file from SFTP server, then after some process with the file , file will be moved to database.. Our requirement is very clear that how...
12
by: jcor | last post by:
Hi, I'm using Ubuntu 7.04. I'm writing a sript that sends files via ftp for several destinations. So far I used Net::FTP and it worked fine. My problem is that I need to send files via SFTP...
4
by: sa6113 | last post by:
I want to use sftp from paramiko to copy a file from a windows machine to a Linux in the network, I use this code : host = "LinuxComputerName" (or its Ip) port = 22 transport =...
7
by: K Viltersten | last post by:
As i noticed, there's no built-in facility for working with SFTP in DotNet. So, i'd like to learn how to build that up. When i went googling for knowledge, i only get a ton of hits on tutorials...
1
by: ndedhia1 | last post by:
I was hoping you could help me out with ftp vs sftp. Below is a method that I have that I call to ftp files from one unix box to another in house, but soon, we will have to ftp from here to NY so...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.