Hello.
I was wondering how to execute .sh file and .py file in linux server by using linux command.
I’d appreciate it if you could tell me the possible way.
Hello.
I was wondering how to execute .sh file and .py file in linux server by using linux command.
I’d appreciate it if you could tell me the possible way.
Would you like to do this with a KNIME node?
Thanks to your reply!
Yes. I’d like to do this with a KNIME node.
Is there any node can do this?
Hi @hhkim , please check these nodes:
Thanks to all!
I tried to use “External SSH Tool” node and I executed .sh file by using this node.
Thank you very much
I have one more question about this node.
I got an error when the “Remote Output File” did not exist.
Do I need to create this file in advance?
Thanks,
hhkim
Hi @hhkim , based on the documentation, it’s a temporary output file which gets deleted after execution. So I don’t think you need to create it.
Does the user you are using have permission to write to that file/path?
EDIT: Can you also share what error message you got?
Thanks to your quick reply!
The user have permission to write to that file/path.
The error message is as below:
(the setting of file name)
(the error message)
(after “output.csv” file creation)
Thanks,
hhkim
Hi @hhkim , based on the documentation, I’m not sure why it complains. These are supposed to be temporary files, that are supposed to be deleted after execution - again, according to documentation.
Does the output file get deleted?
I’m not sure why these should be temporary files though, especially for the input file. While the UI does not specify “temporary”, the documentation does:
I think it’s a mistake on Knime’s side. We’ll need someone from the Knime team to confirm what these fields are in reality, and if these files need to be created in advance.
Thank you so much!
Fortunately, that’s not a serious problem for me.
For once, I used the same name for “Remote Input File” and “Remote Output File”
I will contact the support team if I encounter any issues caused by this
Thanks,
hhkim
If your .PY file contains a program or function/procedure you could import it into a KNIME Python node and use it there.
Also such a scenario is possible:
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.