SFTP issue

Hi folks,

Iam trying sftp a file content from my server to another server, using OpenSSH pub.openssh:sftp.

Iam able successfully to place the file, but not able to append the content from my file to remote server file.

Exiting command.

remotehost:
user@host

batchcommands:
cd …
Put /eai01/data/sftpsite/FTP/FlatFile/EMIS/Working/ISWA00L.ORACLE.SSP5.POHDR

Can someone help on append command.

Have you tried cat command?

First you can place the both file in remote directory and execute the below command and delete the second file.

like cat f2.txt >> f1.txt

Check and let me know the result.

Regards,
Krishna

no luck its not working …it says invalid command

Hi Sandeep,

which wM Version are you on?

wM 9.5 and newer has build-in public services for SFTP connectivity.

See Build-In-Services Guide for further informations.

Concatening files in sftp is not allowed in your SFTP server.
Can you provide complete error message please?

One Option might be to locally combine the files info one and then transfer to sftp server.

Regards,
Holger

Please make sure which ever command you want to execute in the remote server, its been defined in target server host file. If yes, then you don’t get “command not found” error.

Thanks,

target server host file means can you name the file format name, Place where it would be available

Sandeep Raj Deepala,

Can you provide complete error message for invalid command?