Skip to content

Commit

Permalink
Update example PID
Browse files Browse the repository at this point in the history
  • Loading branch information
nakabonne committed Nov 1, 2020
1 parent 977ab06 commit 2f71f76
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,14 @@ func main() {

With `-l` flag can list the processes where the agent runs on:
```
gosivy -l
$ gosivy -l
PID Exec Path
15788 foo /path/to/foo
```

Give the PID of the process to be diagnosed:
```
gosivy 5000
$ gosivy 15788
```

Be sure to start the `gosivy` process as the same user as the target application.
Expand All @@ -106,7 +108,7 @@ func main() {
Give the target's agent address:

```
gosivy host.xz:8080
$ gosivy host.xz:8080
```

### Settings
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (c *cli) usage() {
Flags:
%s
Examples:
gosivy 8000
gosivy 15788
gosivy host.xz:8080
Author:
Expand Down

0 comments on commit 2f71f76

Please sign in to comment.