Hi,
Could you please post your
tSCPFileExists component setting screenshot on forum which will be helpful for us to address your issue?
Best regards
Sabrina
Hi,
From your screenshots, we see that you are using tjava component in your job. Do you want to print out message on console directly? What does the code look like? Could you please check if there is any error in java line?
Best regards
Sabrina
I'm using tJava to print in my console directly if the file exists or not
Here is the code inside
System.out.println("File name : "+(String)globalMap.get("tSCPFileExists_1_FILENAME"));
System.out.println("Statut : "+(String)globalMap.get("tSCPFileExists_1_STATUS"));
I took a look on the source code generated by Talend, here it is :
StringBuilder command_tSCPFileExists_1 = new StringBuilder();
command_tSCPFileExists_1.append("ls \"").append("E:/coreso")
.append("/").append("a.txt").append("\"");
globalMap.put("tSCPFileExists_1_FILENAME", "a.txt");
Hence
Talend execute ls
command on the remote machine, I guess it works on Linux based machines and not in windows ones. Is it true ?!
In fact, my remote server is a windows server 😕