Topic "Appending files"

Author Message
prashant

Guest


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 !!
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24554
Location: Prague, Czechia
Yes, there is a way. It is not documented properly yet, but it is mentioned in "resume" chapter, because it is related.
_________________
Martin Prikryl
prashant

Guest


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!!
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!!
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24554
Location: Prague, Czechia
Quote:
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 Sad

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

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License