Re: 0 byte file transfer problem in scp

From: Bill Marcum (bmarcum_at_iglou.com.urgent)
Date: 05/08/05

  • Next message: c0ldbyte: "Re: 0 byte file transfer problem in scp"
    Date: Sun, 8 May 2005 01:51:18 -0400
    
    

    On 7 May 2005 05:03:37 -0700, Sanjay
      <sanjay2kind@yahoo.com> wrote:
    >
    > I am using scp for file transfer. There is a problem with uploading 0
    > byte file. First time able to transfer file, when the file is not
    > available at target host, but afterwards it is not overwritting the
    > same file with 0 byte. It works fine with non-zero file size. Here only
    > file creation time differ. File permission is read,write. Do not show
    > error during scp too.
    >
    > scp test.dat uscp@host:./
    >
    > Can anyone tell the solution/problem here !!
    >
    ssh uscp@host touch test.dat
    { echo "rm test.dat"; echo "put test.dat" } | sftp uscp@host

    or upload a zip or tar.gz containing the zero byte file...

    -- 
    Test-tube babies shouldn't throw stones.
    

  • Next message: c0ldbyte: "Re: 0 byte file transfer problem in scp"

    Relevant Pages

    • 0 byte file transfer problem in scp
      ... I am using scp for file transfer. ... There is a problem with uploading 0 ... Can anyone tell the solution/problem here!! ...
      (comp.unix.misc)
    • Re: Sloooowwwww ssh/scp
      ... HTTP, or HTTPS? ... If you only need file transfer and not actual shell ... SCP and SSH get used constantly between our machines internally, ...
      (comp.security.ssh)
    • Re: SCP API for Windows
      ... >>available in source code form or as a Windows DLL. ... >I don't see stuff specifically relating to SCP in here. ... >where/how I can simply make a call to initiate a file transfer? ... It's an ssh implementation, but doesn't do any system-specific stuff like file ...
      (comp.security.ssh)
    • Re: 0 byte file transfer problem in scp
      ... > I am using scp for file transfer. ... There is a problem with uploading 0 ... Test-tube babies shouldn't throw stones. ...
      (comp.unix.misc)
    • Re: ssh okay, ssh file transfer fails?
      ... I'm able to connect to my linux system with ssh from a remote computer ... However, when I try to connect with a file transfer client, the connection ... If ssh works the scp and rsync should work. ...
      (alt.os.linux.suse)