The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Retrieve file over SFTP conection
Hello,
how can this be done? I realize that you can execute scripts, but are there any built in tricks in RM that can perform this kind of operation?
Does anybody have code to share where this problem has been tackled one way or another? ::)
Also, can I somehow provide the name of the file to be retrieved dynamically to the script/operator?
Thank you,
frankie
how can this be done? I realize that you can execute scripts, but are there any built in tricks in RM that can perform this kind of operation?
Does anybody have code to share where this problem has been tackled one way or another? ::)
Also, can I somehow provide the name of the file to be retrieved dynamically to the script/operator?
Thank you,
frankie
2
Answers
hmm, I must admit that I am not really sure if this works without any external tool, sorry. Might be but than I am not aware of that.
About providing the name dynamically: You could use macros for that. Just define the macro in your process or extract it from your data. You can then use it everywhere via %{your_macro_name}. There are lots of example for this on myExperiment which can be downloaded with our Community Extension for RapidMiner.
Cheers,
Ingo
Hi,
Any News about SFTP access in the last 5 years?
Regards
Julian
bump.
hello @robin - feel free to post in Ideas -> Product Ideas. People can upvote, etc.. there.
Scott
Not the most straightforward way but I do this using python.
There are plenty of sftp libraries available, most have decent copy paste examples so you don't need to be a coding geek to get it running.
Below is a basic script using ftplib to upload a file. Unfortunatly it isn't sftp (can't find back immediatly where I used it) but the principle remains the same.
and for download
Look for sftp examples and change the code accordingly, ask your local python guru for support if needed but it's less scary as it looks at first glance