Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
_AnonymousUser
Specialist III
Specialist III

using tSCPFileList output in tSCPGet

Hi all,
might be a classical newbe question but I don't get it to work.
I espablished a tSCPConnect
and
tSCPFileList is working
but I can't figure out how I can you these filenames in tSCPGet.
Any advice?
Labels (2)
4 Replies
Anonymous
Not applicable

Hi Ulrich,
From tSCPFileList connect an iterate flow to tSCPGet
In tSCPGet filelist field type your directory in "" and then press Ctrl then Space. This will give you a list of globalmap variables. Select the variable tSCPFileList_1_CURRENT_LINE. Your line should then look like this:
"/home/user/scp/"+((String)globalMap.get("tSCPFileList_1_CURRENT_LINE"))
For each iteration you will then use the next file in the list.
Regards,
Rick
_AnonymousUser
Specialist III
Specialist III
Author

Hi Rick,
sorry for the late responce.
Yes, this works. Thanks!
Do you know where this kind of info is documented?
Ulrich
Anonymous
Not applicable

Great was about to use context var with Java... this is even more flexible ^^
Thanks tchd !
Anonymous
Not applicable

hi 
am using tscpfilelist to list files in sftp server ( sftp server set up on my local windows machine)
what should i pass in filelist field.
any command i pass is nt working and no exception thrown. i tried ls, dir nothing seems to work
Also please tell me what to pass as filelist source in tscpget