How do I notify-send a long command?
0
votes
1
answer
333
views
I want to use notify-send to show a notification every n minutes to tell me the vpn status.
The command would be running in a popup terminal I have already set up, hidden from view until I need to stop the while loop, then I'd just do ctrl-c.
I wrote the command below, but it errors out infinitely:
Invalid number of options.
while true
do
notify-send $(timeout 5s nordvpn status | rg -i "status|country|uptime" ; nordvpn settings | rg -i "kill switch|auto-connect")`
done
timeout 5s
is there because sometimes nordvpn is not responsive, and I need to kill the command after 5 seconds.
Thank you for assisting.
Asked by Marslander
(15 rep)
May 3, 2022, 04:18 AM
Last activity: May 3, 2022, 04:39 AM
Last activity: May 3, 2022, 04:39 AM