Comments (3)
I think this is a problem that cannot be addressed by Anybar internally, because, well, it might be not running at all when you need to test it. Hence, this should be solved by external tools. ps
approach seems ok to me. Do you have any particular issues with it?
from anybar.
Thanks @tonsky. The ps
method works much better than expected and I really only wondered if there was a better way
from anybar.
I found that using lsof -Pn -i4
is really simple to parse because it lists the application along with its ports. It outputs:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
AnyBar 44361 Gira 3u IPv4 0x6ac97d677e737941 0t0 UDP *:1738
AnyBar 44462 Gira 3u IPv4 0x6ac97d677e7355e9 0t0 UDP *:1739
Maybe it's useful for someone :)
from anybar.
Related Issues (20)
- Icons support
- nc: invalid option -- 4 HOT 3
- [Security] Path Traversal HOT 2
- How to prevent anybar from stealing my current window focus? HOT 2
- Support XDG Base Directory Specification for custom image folder HOT 1
- Mojave: shell command with nc exiting with nc error HOT 2
- emoji HOT 1
- Flashing Icon Feature Req HOT 2
- The executable in AnyBar-0.2.0.zip has version number 0.1.4 HOT 2
- Feature Request: arbitrary message HOT 2
- Pass starting color to AnyBar? HOT 4
- Error on trying to open the app HOT 2
- Big Sur dynamically switches between black and white icons depending on desktop background HOT 6
- Alfred workflow link broken HOT 1
- Can't open on Mac OS 10.15.7 HOT 2
- 0.2.3 opening old style dots on 10.15.7 HOT 4
- bash' network redirection preferred over nc HOT 4
- Would it be possible to not display a warning AnyBar icon in the menu bar when the port is already taken? HOT 5
- Start automatically on traffic HOT 2
- "_alt" images for dark system appearance setting not working HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from anybar.