Hello! Help please, the “cut” command is not executed, that is, the output of information does not come back, the command is executed on the som server and I receive the data, nothing happens through the web. I want to get information from a file but nothing happens
Are you using the execute node to run the cat command? I have given it a quick go here and the cat command seems to be returning data.
How do you have n8n installed is it in a container?
this is my first experience with docker, put on man Server Setup | Docs
I do not have such a directory as you have on the screen
That is odd uptime should return something.
My theory with the cat option was that the file you were trying to read was not available to the container but uptime not working is really odd.
What version of n8n are you running and just to double check you did hit the execute node button at the top right?
of course I started, 0.142
verified the command, noticed that he did not execute it at all, tried to execute it with saving cat / root / files / 123 >> / root / logs
Is it possible that the node is disabled? or is the node before the SSH node not returning any data? Can you share your workflow? To do so, just copy all the nodes and paste them here.
what are you speaking about?
that’s all there is, not even the uptime command is displayed, I understand that the command is not executed on the server, I tried cat / root / files / 123 >> / root / logs
As I suspected, the executed command node is disabled (that is why it’s greyed out). Just click on it and press d on your keyboard or click on the play-like button that shows when you hover over the node - check the image below.
Now it’s executing. I would do something simpler before using
cat, like doing a
ls -l to see if at least list the files within the root directory;
As I understand it, he does not see anything (but how do I know which directory I am in?
the pwd command shows a directory that I cannot find
The command is being executed in the container, not in the host. The container has its file system. Suppose you want the container to have access to the files in the host; you need to use volumes. Assuming that you followed the server setup tutorial if you want to have access to the file 123, you need to add it to
/root/n8n/.n8n in the host, and in the execute the command, you should be able to reach it using
does not find
The screenshot says “No such file or directory” this means. There is no such file present.
Can you run this command?
Also, Can you tell us your usecase or what you’re trying to achieve? So we can help you with that more clearly
I’m trying to set up a telegram bot, at work without using docker it turned out to be done, now I want to do for myself a little differently
using the command, I managed to create a folder inside the directory, but I can’t find it on the server