Skip to content

Commit 1a26da7

Browse files
authored
Merge pull request akme#4 from viniokil/master
Add mac OS to README.md
2 parents a9bb828 + e2635c2 commit 1a26da7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,14 @@ sudo lsof -n -F | python lsofgraph.py | unflatten -l 1 -c 6 | dot -T svg > /tmp/
1919
````
2020

2121
![example output](/example.jpg)
22+
23+
# Install and use to Mac OS
24+
25+
Graphviz contains utilities dot and unflatten
26+
````shell
27+
brew install Graphviz
28+
git clone https://github.com/akme/lsofgraph-python.git
29+
cd lsofgraph-python
30+
lsof -n -F | python lsofgraph.py | unflatten -l 1 -c 6 | dot -T jpg > /tmp/a.jpg && open /tmp/a.jpg
31+
lsof -n -F | python lsofgraph.py | unflatten -l 1 -c 6 | dot -T svg > /tmp/a.jpg && open -a Safari.app '/tmp/a.svg'
32+
````

0 commit comments

Comments
 (0)