Appending files

Advertisement

prashant
Guest

Appending files

Hi,

I have a small problem. I need to append a local file to a file on the
ftp server.
Is there any way by which I can append a local file to a remote file.
If not is there a workaround?

Cheers !!

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
28,262
Location:
Prague, Czechia

Re: Appending files

Yes, there is a way. It is not documented properly yet, but it is mentioned in "resume" chapter, because it is related.

Reply with quote

prashant
Guest

Re:

Hi,

I wanted to append it from the command line or using a script file.

I am using a script to perform automatic appends to a remote file,Is there a command similar to 'append' in FTP ?

Cheers!!

Reply with quote

Guest

Just in case, my previous reply seemed confusing.

I am trying to append a local file to a remote file . I was able to do this using normal ftp using the append command . I think there is no such command so far in winscp.

The workaround solution would be to name the local file the same as the remote file and use a normal put command as shown below.


winscp> append com.txt com.txt
Unknown command 'append'.
winscp> put com.txt
com.txt | 0 kB | 0.0 kB/s | binary | 0%
Remote file 'com.txt' already exists. Overwrite?
New: 130 bytes, 22/03/2005 11:47:14
Existing: 124 bytes, 22/03/2005 11:47:14
(Y)es, (N)o, (A)bort, A(p)pend, Ne(w)er only, N(o) to All, Y(e)s to All: Append
com.txt | 0 kB | 2.6 kB/s | ascii | 100%
winscp> bye


As you can see , I get a prompt, asking me to replace , append. If I do this using a script file , is there someway by which I can append the file , without getting the prompt.

I hope I am clear this time ..

Cheers!!

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
28,262
Location:
Prague, Czechia

As you can see , I get a prompt, asking me to replace , append. If I do this using a script file , is there someway by which I can append the file , without getting the prompt.
It is not possible, yet :-(

BTW, I'm going to remove your duplicate post.
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum