Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B buck
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 201
    • Issues 201
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 22
    • Merge requests 22
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • buck
  • Issues
  • #1044
Closed
Open
Issue created Dec 11, 2016 by Administrator@rootContributor

dbuck is broken on Linux

Created by: davido

running dbuck on Linux:

  uname -a
  Linux l4.1.34-33-default #1 SMP PREEMPT Thu Oct 20 08:03:29 UTC 2016 (fe18aba) x86_64 x86_64 x86_64 GNU/Linux

is failing for me with:

  $ dbuck build gerrit
  tail: cannot open ‘+2’ for reading: No such file or directory

when i replace tail +2 with tail -2 in this line, it's failing with different error:

  $ lsof -i:8888 | tail -2 | awk '{ print $2 }' | xargs -L1 kill -9
  kill: not enough arguments

It's also clear why: there is no such process. There is this xargs option

  -r, --no-run-if-empty
              If the standard input does not contain any nonblanks, do not run the command.  Normally, the command is run once even if there is no input.  This  option  is  a
              GNU extension.

so that the fix on Linux is:

  lsof -i:8888 | tail -2 | awk '{ print $2 }' | xargs -rL1 kill -9
Assignee
Assign to
Time tracking