Re: 0 byte file transfer problem in scp
From: c0ldbyte (c0ldbyte_at_comp.unix.admin)
Date: 05/08/05
- Previous message: Bill Marcum: "Re: 0 byte file transfer problem in scp"
- In reply to: Bill Marcum: "Re: 0 byte file transfer problem in scp"
- Next in thread: Sanjay: "Re: 0 byte file transfer problem in scp"
- Reply: Sanjay: "Re: 0 byte file transfer problem in scp"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 )
- Previous message: Bill Marcum: "Re: 0 byte file transfer problem in scp"
- In reply to: Bill Marcum: "Re: 0 byte file transfer problem in scp"
- Next in thread: Sanjay: "Re: 0 byte file transfer problem in scp"
- Reply: Sanjay: "Re: 0 byte file transfer problem in scp"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|