Re: 0 byte file transfer problem in scp

From: c0ldbyte (c0ldbyte_at_comp.unix.admin)
Date: 05/08/05

  • Next message: Sanjay: "Re: 0 byte file transfer problem in scp"
    Date: Sun, 08 May 2005 15:23:49 GMT
    
    

    On 2005-05-08, Bill Marcum <bmarcum@iglou.com.urgent> wrote:
    > 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...
    >

    Or just type touch /path/to/touched/file/test.dat on the machine
    that your trying to upload it to lol.

    -- 
    ( When in doubt, use brute force. -- Ken Thompson 1998 )
    

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

    Relevant Pages

    • Re: 0 byte file transfer problem in scp
      ... > I am using scp for file transfer. ... There is a problem with uploading 0 ... ssh uscp@host touch test.dat ...
      (comp.unix.misc)
    • Re: Access control based on user and directory
      ... Also mount that data fs noexec so they can't upload programs and run them. ... If they upload a file from the laptop onto the server via SCP and the file has insufficient group permissions, would the default:group ACL specified in the parent directory take precedence over the standard "group" permission coming through SCP? ...
      (comp.os.linux.development.system)
    • Re: Access control based on user and directory
      ... They upload files via SCP. ... file has insufficient group permissions, ...
      (comp.os.linux.development.system)
    • resuming file transfer with scp
      ... I was surprised to recently discover that scp does not ... handle resuming a file transfer. ... That'd be o.k., but rsync is very ...
      (comp.security.ssh)
    • 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)