I use awk command to parse pid of my server process. So i have next command with its output:
But it does not work. To know reasons of it i go step back:
Here we can see, that awk statement have no affect result.
At the same time, exactly this command on server works properly.
So how cann i solve this issue? What i am doing wrong?
Can you double check the output of "ps aux | grep '/[r]ace_bot/' | awk '{print$2}'" on Pipelines? You've got everything else to compare except that at the moment.
Also you may wanna check that your PIDs are still output as expected if you use:
ps aux | grep '/[r]ace_bot/' | awk '{print $2}' | xargs echo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hmmm. Nothing stands out as suspicious. Is the issue reproduced if you run this inside of a Docker environment? Pipelines runs in Docker, so it should be an identical environment here. https://confluence.atlassian.com/bitbucket/debug-your-pipelines-locally-with-docker-838273569.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Actually. The 'print $2' doesn't seem to be working as expected here. That seems like a candidate.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What Docker image are you using in Pipelines?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As I understand what image docker, I use
python:3.5.1
At the same time, at the first command in my scipt i connect to my remote server and then all commands execute on server side.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.