Skip to content

Instantly share code, notes, and snippets.

@x-yuri
Created March 28, 2020 15:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save x-yuri/541cd710cd46bcd717a514e067af8969 to your computer and use it in GitHub Desktop.
Save x-yuri/541cd710cd46bcd717a514e067af8969 to your computer and use it in GitHub Desktop.

pstree doesn't always show arguments

$ while true; do ps -Ho args= -s 2756353 | sed -E 's/^(\s*)/\1* /'; sleep 1; done
...
      * /usr/bin/node $PRJ_ROOT/node_modules/.bin/cypress run -s cypress/integration/1.spec.js,cypress/integration/2.spec.js
        * /home/yuri/.cache/Cypress/3.4.1/Cypress/Cypress --run-project --spec --cwd $PRJ_ROOT cypress/integration/1.spec.js,cypress/integration/2.spec.js $PRJ_ROOT
          * /home/yuri/.cache/Cypress/3.4.1/Cypress/Cypress --type=zygote --no-sandbox
            * /home/yuri/.cache/Cypress/3.4.1/Cypress/Cypress --type=renderer --autoplay-policy=no-user-gesture-required --force-device-scale-
          * /home/yuri/.cache/Cypress/3.4.1/Cypress/Cypress /home/yuri/.cache/Cypress/3.4.1/Cypress/resources/app/packages/server/lib/plugins/child/index.js --file $PRJ_ROOT/cypress/plugins/index.js
          * /home/yuri/.cache/Cypress/3.4.1/Cypress/resources/app/packages/server/node_modules/@ffmpeg-installer/linux-x64/ffmpeg -f image2pipe -use_wallclock_as_timestamps 1 -i pipe:0 -y -vcodec libx264 -preset ultrafast $PRJ_ROOT/cypress/videos/2.spec.js.mp4
...
$ while true; do pstree 2756353 -TalCage; sleep 1; done
...
          └─node $PRJ_ROOT/node_modules/.bin/cypress run -s cypress/integration/1.spec.js,cypress/integration/2.spec.js
              └─Cypress
                  ├─Cypress
                  │   └─Cypress
                  ├─Cypress /home/yuri/.cache/Cypress/3.4.1/Cypress/resources/app/packages/server/lib/plugins/child/index.js --file $PRJ_ROOT/cypress/plugins/index.js
                  └─ffmpeg -f image2pipe -use_wallclock_as_timestamps 1 -i pipe:0 -y -vcodec libx264 -preset ultrafast $PRJ_ROOT/cypress/videos/2.spec.js.mp4
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment