copying a file to remote machine with talend

One Star

copying a file to remote machine with talend

i know its possible to execute commands over ssh using ssh component, however I was wondering if its possible to actually copy files over to a remote machine from your local machine, so that when a sub job has finished you can open up an ssh connection to a remote machine and copy a file that was outputted on the subjob over to the remote machine/server?
One Star

Re: copying a file to remote machine with talend

i know that tscp and ftp components work for files but how do i copy a whole directory is this possible rather than having to manually type in every single file, especially when you dont know how many files are going to be in the directory and you therefore want to just transfer the whole directory.
One Star

Re: copying a file to remote machine with talend

hi,

i think on fly, you can use a new entrie of filmask or sources with "*.*" in the tSCP like in tFileList

Regards

Jeremie
One Star

Re: copying a file to remote machine with talend

I tried that already it was the first thing i tried and i get this error when i run it:
Exception in component tSCPPut_1
java.io.IOException: Error during SCP transfer.
at ch.ethz.ssh2.SCPClient.put(SCPClient.java:575)
at ch.ethz.ssh2.SCPClient.put(SCPClient.java:533)
at assetmigration.teste_0_1.teste.tSCPPut_1Process(teste.java:383)
at assetmigration.teste_0_1.teste.runJobInTOS(teste.java:608)
at assetmigration.teste_0_1.teste.main(teste.java:517)
Caused by: java.io.FileNotFoundException: C:\test\*.* (The filename, directory name, or volume label syntax is incorrect)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at ch.ethz.ssh2.SCPClient.sendFiles(SCPClient.java:188)
at ch.ethz.ssh2.SCPClient.put(SCPClient.java:571)
... 4 more