Comments (10)
Could you please show a screenshot/paste the command and the error you are receiving?
from notify.
Could you please show a screenshot/paste the command and the error you are receiving?
from notify.
notify -version
is showing 1.0.0 whereas sudo notify -version
is using 0.0.2
from notify.
Could you also do a which notify
and sudo which notify
and/or a locate notify
? You might have two versions of notify
installed on your machine. If you are using go get ...
to install, it usually puts under $GOPATH/
but if the environmental variable is not set, it might download it under $HOME/go
as a default, hence running the command with sudo
could result in a different $HOME
directory compared to your user home.
from notify.
Could you also do a
which notify
andsudo which notify
and/or alocate notify
? You might have two versions ofnotify
installed on your machine. If you are usinggo get ...
to install, it usually puts under$GOPATH/
but if the environmental variable is not set, it might download it under$HOME/go
as a default, hence running the command withsudo
could result in a different$HOME
directory compared to your user home.
root@ubuntu-s-1vcpu: which notify
/root/go/bin/notify
root@ubuntu-s-1vcpu: sudo which notify
/usr/local/bin/notify
from notify.
Now you need to check whether those are symbolic links and if they point to the same binary or not. I'd assume no, which means that you have two versions installed on your machine.
from notify.
Now you need to check whether those are symbolic links and if they point to the same binary or not. I'd assume no, which means that you have two versions installed on your machine.
so how can I now get rid of this issue and just have one copy on my machine that is the latest one?
from notify.
You can run /root/go/bin/notify -version
and then /usr/local/bin/notify -version
to see which one is the old version.
You can use ls -l /usr/local/bin/notify
to see where does it point. If that is the old version then you can delete it, together with where it points.
You can also try GO111MODULE=on go get -u -v github.com/projectdiscovery/notify/cmd/notify
, both with and without sudo
, or go clean -i github.com/projectdiscovery/notify/cmd/notify...
and reinstall again with the command above.
from notify.
You can run
/root/go/bin/notify -version
and then/usr/local/bin/notify -version
to see which one is the old version.
You can usels -l /usr/local/bin/notify
to see where does it point. If that is the old version then you can delete it, together with where it points.You can also try
GO111MODULE=on go get -u -v github.com/projectdiscovery/notify/cmd/notify
, both with and withoutsudo
, orgo clean -i github.com/projectdiscovery/notify/cmd/notify...
and reinstall again with the command above.
Hi, I have removed both the installation with rm -rf
now after again installing notify, sudo notify
is saying that command is not found.
from notify.
You should be able to find it under $HOME/go/bin/notify
or $GOPATH/bin/notify
. If you want it to be usable from anywhere, you'll have to create a symbolic link ln -s <the_path_to_notify> /usr/local/bin/notify
.
from notify.
Related Issues (20)
- Missing notifications for telegram HOT 2
- matrix support HOT 1
- Reading keys from environment variables
- SMTP fails when password contains octothorpe ("#") character HOT 1
- Is there a risk of man-in-the-middle attacks using smtp for notification
- Feature: Gotify support
- File upload support along with message HOT 1
- Add option to parse specific values passed to notify by id
- Discord messages appear as embeds rather than plaintext HOT 1
- Teams Webhook not working HOT 5
- Support dingding
- Provider-config.yaml not available
- update shoutrrr to v0.8+ for telegram message_thread_id support
- [FTL] Could not run notifier: notify works with stdin or file using -data flag HOT 3
- Discord integration sends empty messages HOT 9
- Telegram markdown issue
- telegram notifications with "*" don't get sent HOT 2
- proxy not working when ratelimit is 0
- issue with integration test
- The JSON data still cut even we set (-cl) flag for char-limit in custom webhook HOT 6
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 notify.